Hi,

WsGen v1.2.5 seems to ignore choice elements when they're children of sequence elements. The xsd fragment below generates a method with a single string paramater called Text0, rather than Text0 and the choice element.

<xsd:element name="echo">
  <xsd:complexType>
    <xsd:sequence>
      <xsd:element name="Text0" type="xsd:string"/>
      <xsd:choice>
        <xsd:element name="Text1" type="xsd:string"/>
        <xsd:element name="Text2" type="xsd:string"/>
      </xsd:choice>
    </xsd:sequence>
  </xsd:complexType>
</xsd:element>

If I remove the sequence and Text0, the choice element is created as expected.

<xsd:element name="echo">
  <xsd:complexType>
      <xsd:choice>
        <xsd:element name="Text1" type="xsd:string"/>
        <xsd:element name="Text2" type="xsd:string"/>
      </xsd:choice>
  </xsd:complexType>
</xsd:element>

This may be related to XFIRE-819.

Thanks,
Greg

---------------------------------------------------------------------
To unsubscribe from this list please visit:

   http://xircles.codehaus.org/manage_email

Reply via email to