[prev in list] [next in list] [prev in thread] [next in thread] 

List:       axis-dev
Subject:    DO NOT REPLY [Bug 13439]  -
From:       bugzilla () apache ! org
Date:       2002-10-31 10:53:19
[Download RAW message or body]

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 bugzilla.apache.org@cohen-rose.org  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".
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic