XSD Complex Type Preventing Client Proxy GenerationHy Mark,
    I noticed two thing in your shema:
   1) the error was reported using array while in the schema you used Array
2) I don't found something like xmlns:soapenc=""

Try to look this things or if you thing that there's soething wrong in your 
schema use an xml validator.
I hope to be helped you, regards
Simone

----- Original Message ----- 
  From: [EMAIL PROTECTED] 
  To: [email protected] 
  Sent: Sunday, February 10, 2008 3:40 PM
  Subject: XSD Complex Type Preventing Client Proxy Generation


  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 

Reply via email to