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-429) Incorrect code generated from xsd:choice element in WSDL
Date Sun, 24 Apr 2005 22:14:28 GMT
     [ http://issues.apache.org/jira/browse/AXIS-429?page=all ]
     
Davanum Srinivas resolved AXIS-429:
-----------------------------------

     Assign To:     (was: Axis Developers Mailing List)
    Resolution: Fixed

looks like jarek already fixed this (http://marc.theaimsgroup.com/?l=axis-dev&m=110548627131118&w=2)

thanks,
dims

> Incorrect code generated from xsd:choice element in WSDL
> --------------------------------------------------------
>
>          Key: AXIS-429
>          URL: http://issues.apache.org/jira/browse/AXIS-429
>      Project: Axis
>         Type: Bug
>   Components: WSDL processing
>     Versions: current (nightly)
>  Environment: Operating System: Windows NT/2K
> Platform: PC
>     Reporter: Doug Bitting
>  Attachments: ComplexChoice.java
>
> In one of the test cases (test\wsdl\types\ComprehensiveTypes.wsdl), you'll find 
> the following schema definition:
> ---- snip here ----
>       <xsd:complexType name="complexChoice">
>         <xsd:choice>
>           <xsd:element name="choiceA" type="xsd:int"/>
>           <xsd:element name="choiceB" type="xsd:string"/>
>           <xsd:element name="choiceC" type="xsd:string"/>
>         </xsd:choice>
>       </xsd:complexType>
> ---- snip here ----
> When run through WSDL2Java, it generates the attached ComplexChoice.java file.  
> This compiles and runs fine.  However, the SOAP request generated with this 
> ends up with something like the following XML fragment (assuming an element 
> named complexChoice):
> ---- snip here ----
> <complexChoice>
>   <choiceA>1</choiceA>
>   <choiceB xsi:null="true"/>
>   <choiceC xsi:null="true"/>
> </complexChoice>
> ---- snip here ----
> The above is not valid XML.

-- 
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