Hi,

I've got 2 problems with WSDL2Java and I would like to know your opinion before reporting them as bugs.

Problem 1:

I'm trying to use this array :

<xsd:complexType name="strSeq">
<xsd:complexContent>
<xsd:restriction base="SOAP-ENC:Array">
<xsd:sequence>
<xsd:element name="item" minOccurs="0" maxOccurs="5" type="xsd:string"/>
</xsd:sequence>
<xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:string[]"/>
</xsd:restriction>
</xsd:complexContent>
</xsd:complexType>

but the file generated by WSDL2Java doesn't contain the getItem() and setItem(...) methods (they are unusable).

I've made some tests to find the cause, and there are 2 possibilities :
1. Remove the <complexContent> and <restriction> tags
2. Remove the <sequence> tag

However, the original WSDL seems correct (I've found the same structure in the soap specification).


Problem 2:

The mapping for the URL "http://forExample.org/1.0/"; is the package org.forExample._1.0 , and should be org.forExample._1._0
Or is this URL malformed ?

Thanks,
Olivier Gauwin

Reply via email to