I have a piece of XSD reads as below
<xs:schema ...>
<xs:element name="order" type="tns:order/>
<xs:complexType name="order">
<xs:sequence>
<xs:element .../>
<xs:element name="itemList" minOccurs="0">
<xs:complexType>
<xs:sequence>
<xs:element name="item" type="tns:item" minOccurs="0" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
<xs:complexType name="item">
<xs:sequence>
...
</xs:sequence>
</xs:complexType>
</xs:schema>
By default, an Order class is generated with a nested class Order.ItemList. The signature of the itemList field within Order class is:
protected Order.ItemList itemList;
However I am expecting the type of itemList is java.util.List, i.e.
protected List<Item> itemList;
How can I achieve this through the external binding file? I am aware of this link but the accepted answer doesn't work for me as I have no control over this schema (it is part of a WSDL)