axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Davanum Srinivas (JIRA)" <axis-...@ws.apache.org>
Subject [jira] Resolved: (AXIS-1587) WSDL2Java doesn't identify nillable- attributes
Date Wed, 27 Jul 2005 20:28:21 GMT
     [ http://issues.apache.org/jira/browse/AXIS-1587?page=all ]
     
Davanum Srinivas resolved AXIS-1587:
------------------------------------

    Resolution: Fixed

I believe this has been fixed in Axis 1.2.1. If it isn't, add a comment and i'll reopen the
bug.

thanks,
dims

> WSDL2Java doesn't identify nillable- attributes
> -----------------------------------------------
>
>          Key: AXIS-1587
>          URL: http://issues.apache.org/jira/browse/AXIS-1587
>      Project: Apache Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: current (nightly)
>  Environment: Axis-1.2-RC1 and all Axis-1.2 releases
>     Reporter: Sami Lakka

>
> WSDL2Java should not bind elements that have nillable- attribute as an primitive value
(int etc.) This bug can be fixed by adding
> following lines have into JavaBeanWriter (method preprocess, line 318):
>   
> if (attr.getOptional() || attr.getNillable()) 
>    typeName = Utils.getWrapperType(typeName); 
>  
> The following line have to be added to SchemaUtils (method addAttributeToVector, line
1579):
> attr.setNillable(JavaUtils.isTrueExplicitly(Utils.getAttribute (child,"nillable")));
> Following methods have to be added to ContainedAttribute (or more likely refactored to
the ContainedEntry). The boolean attribute nillable has also to be added to ContainedAttribute
>  
>     public void setNillable(boolean nillable) { 
>         this.nillable = nillable; 
>     } 
>     public boolean getNillable() { 
>         return nillable; 
>     } 

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message