DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13439>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13439 Incorrect code generated from xsd:choice element in WSDL ------- Additional Comments From [EMAIL PROTECTED] 2002-10-31 10:53 ------- A possible workaround is to modify the schema to set each element's minOccurs to zero as follows ---- snip here ---- <xsd:complexType name="complexChoice"> <xsd:choice> <xsd:element name="choiceA" type="xsd:int" minOccurs="0"/> <xsd:element name="choiceB" type="xsd:string" minOccurs="0"/> <xsd:element name="choiceC" type="xsd:string" minOccurs="0"/> </xsd:choice> </xsd:complexType> ---- snip here ---- Axis then correctly omits the elements with xsi:nil="true".