I am looking for alternatives to support multiple occurances.
I have WSDL that looks like this:
-------------------------
<wsdl:types>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
attributeFormDefault="qualified" elementFormDefault="qualified"
targetNamespace="http://quickstart.samples/xsd">
<xs:element name="MyArray">
<xs:complexType>
<xs:element name="My" minOccurs="1" maxOccurs="unbounded" />
<xs:sequence>
<xs:element name="MyOne" type="xs:string" />
<xs:element name="MyTwo" type="xs:string" />
<xs:element name="MyThree" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</wsdl:types>
-------------------------
When I run:
-------------------------
ksh $AXIS2_HOME/bin/wsdl2java.sh -uri ./MySample.wsdl -p
samples.quickstart -o . -d adb -s -wv 1.1 -ss -sd
-------------------------
The java code that gets generated does not support multiple occurances
of this type.
Which seems to be expected because of this limitation listed on
http://ws.apache.org/axis2/:
--------------------------
ADB databinding does not support minOccurs and maxOccurs attributes in
sequence and choice elements (i.e., <sequence minOccurs="0"
maxOccurs="unbounded"></sequence>)
--------------------------
What are my alternatives to support multiple occurances?
Do I have to put min/maxoccurs on each element?
Can I just remove sequence and have it generate java that support
multiple occurances?
Can wsdl2java be configured to report this and similar errors?
--
Michael Potter
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]