We have the following xsd in our wsdl:
<element name="Oeffnungszeit" type="tv:OeffnungszeitType"/>
<complexType name="OeffnungszeitType">
<sequence minOccurs="1" maxOccurs="unbounded">
<element name="von" type="xsd:time"/>
<element name="bis" type="xsd:time"/>
</sequence>
<attribute name="von" type="tv:WochentagType"/>
<attribute name="bis" type="tv:WochentagType" use="optional"/>
</complexType>
<element name="Oeffnungszeiten" type="tv:OeffnungszeitenType"/>
<complexType name="OeffnungszeitenType">
<sequence>
<element ref="tv:Oeffnungszeit" minOccurs="1" maxOccurs="unbounded"/>
</sequence>
</complexType>
When we compile the wsdl using the line:
java org.apache.axis2.wsdl.WSDL2Java -uri ${wsdl.src.dir}/${wsdl.name} -ss -sd
-d xmlbeans -o ${target.dir} -p ${skeleton.package-name}"/>
the xmlbean-compiler used by axis2 1.0 generates the following code in
OeffnungszeitType:
/**
* Gets the "bis" element
*/
java.util.Calendar getBis();
/**
* Gets the "von" element
*/
java.util.Calendar getVon();
Which is not correct: the returnValue should be an Array.
Compiling the same xsd with the newest xmlBean-Compiler via:
scomp -src ./src -out xyz.jar xyz.xsd
generates the correct code:
/**
* Gets array of all "von" elements
*/
java.util.Calendar[] getVonArray();
/**
* Gets array of all "bis" elements
*/
java.util.Calendar[] getBisArray();
We also exchanged the xmlbean.jar of the xmlbean-distribution with the one that
comes with axis2 1.0 with the same result.
To me this looks like an error in the xmlbean-Generator used in Axis2 1.0!?
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]