Hi,
I'm using cxf 2.7.10 with java 6.

I have defined a wsdl with a top-down approach. In one of the xml schema
that I import in the wsdl I have defined a complex type that includes a
choice.

When I look at the wsdl that cxf generates at runtime I see that the choice
disappeared and a nillable=true have appeared.

<xsd:complexType name="MyResponse">
  <xsd:choice>
    <xsd:element ref="mdtx:myElement"/>
    <xsd:element name="error" type="mdsvc:Error" maxOccurs="unbounded"/>
  </xsd:choice>
</xsd:complexType>

<xs:complexType name="MyResponse">
  <xs:sequence>
    <xs:element minOccurs="0" ref="ns2:myElement"/>
    <xs:element maxOccurs="unbounded" minOccurs="0" name="error"
nillable="true" type="ns3:Error"/>
  </xs:sequence>
</xs:complexType>

Please, could you explain me why it happens and how can I change some
configuration to avoid it?
Thank you very much.
Stefano.

Reply via email to