I have a WSDL from a MS WebService with a complex type defined as:
<s:complexType name="ArrayOfVendorItem">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded"
name="VendorItem" nillable="true" type="tns:VendorItem" />
</s:sequence>
</s:complexType>
<s:complexType name="VendorItem">
<s:sequence>
<s:element minOccurs="0" maxOccurs="1" name="VENDOR_ID"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="PUR_LOC"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="LOCATION"
type="s:string" />
<s:element minOccurs="0" maxOccurs="1" name="VENDOR_PART_NUM"
type="s:string" />
</s:sequence>
</s:complexType>
With an import as:
<s:schema targetNamespace="http://.....com/AbstractTypes">
<s:import namespace="http://schemas.xmlsoap.org/soap/encoding/" />
<s:complexType name="StringArray">
<s:complexContent mixed="false">
<s:restriction base="soapenc:Array">
<s:sequence>
<s:element minOccurs="0" maxOccurs="unbounded"
name="String" type="s:string" />
</s:sequence>
</s:restriction>
</s:complexContent>
</s:complexType>
</s:schema>
When I attempt to generate a client proxy using the WsdlToJava tool I
get the following exception:
wsdltojava error : undefined simple or complex type soapenc:array
Any idea on why this is occurring and how to resolve this is greatly
appreciated.
Mark