cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jose MarĂ­a Zaragoza <demablo...@gmail.com>
Subject wsdl2java + choice (one or both )
Date Tue, 26 Nov 2013 08:05:00 GMT
Hello:


I'm using Apache CXF 2.7.3

I've having problems to generate JAXB classes from XSD that cointains
this element

<xs:choice>
    <xs:sequence>
       <xs:element name="X" type="xs:string"/>
      <xs:element name="Y" type="xs:string" minOccurs="0"/>
       </xs:sequence>
<xs:element name="Y" type="xs:string"/>
</xs:choice>

The problem is because there is two element called "Y" and I guess the
tools doesn't know how to generate the JAXB class, but I think that it
should generate two String fields no required

Any idea ? Any w/a ?


Thanks

Mime
View raw message