I have a problem when generating java class that should hold an "unbounded"
number of subelements when using WSDL2java stub generator. The Schema (see
under) describes the <Batch> element containing unbounded sequence of
<bProperty> elements, while (as far I can see) the generated java class
Batch is not capable of holding more then a single BProperty. The problem
occures if more then one <bPropertty> are transmited in a single <Batch>
element. Am I missing something here?
Schema:
======
...
<xs:element name="Batch">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded"><xs:element
ref="bProperty"/></xs:sequence>
</xs:complexType>
</xs:element>
...
<xs:element name="bProperty">...
...
Generated java:
==========
[from Batch.java]
...
public class Batch implements java.io.Serializable {
private TTSearch.BProperty bProperty;
...
[form BProperty.java]
...
public class BProperty implements java.io.Serializable,
org.apache.axis.encoding.SimpleType {
...
BR
Silvester