I'm developing a web-service implementation base on a wsdl. In a xsd linked to the wsdl there is a complex choice like this:
<xs:sequence>
<xs:choice>
<xs:element name="BinaryTerm" type="TermType" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>
<xs:element name="BinaryExpression" type="ExpressionType"/>
</xs:choice>
<xs:element name="Operator" type="SimpleOperatorType"/>
<xs:choice>
<xs:element name="BinaryTerm" type="TermType"/>
<xs:element name="BinaryExpression" type="ExpressionType"/>
</xs:choice>
</xs:sequence>
Every time I generated the class implementation I obtain a class, ExpressionType, with a list of JAXBElement due to the duplicate name BinaryTerm and BinaryExpression. I've read a lot of thread suggesting to use bindings.xml with these options:
<jaxb:globalBindings generateElementProperty="false" fixedAttributeAsConstantProperty="true" choiceContentProperty="true">
But nothing changed in my ExpressionType class. Anyone can suggest how to manage this XSD related to WSDL. I can't change these definition files. Thanks, Andrea