You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-dev@axis.apache.org by "Davanum Srinivas (JIRA)" <ax...@ws.apache.org> on 2005/04/25 00:14:28 UTC
[jira] Resolved: (AXIS-429) Incorrect code generated from xsd:choice element in WSDL
[ 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