1 Reply Latest reply on Jan 19, 2007 11:16 AM by Lyly Yonkwa

    Axis WebService Array Problem

    Vishnu Vardhana Newbie

      Hello,

      I am getting following exception in JBoss:

      org.jboss.ws.WSException: Cannot obtain attribute: {http://schemas.xmlsoap.org/soap/encoding/}arrayType

      This error is related to Array in WSDL.
      My WSDL code is like this:

      <schema targetNamespace="urn:ConnEx" xmlns="http://www.w3.org/2001/XMLSchema">
       <import namespace="urn:connex:api:mapi"/>
       <import namespace="http://xml.apache.org/xml-soap"/>
       <import namespace="urn:connex:impl:mapi"/>
       <import namespace="urn:connex:api:value"/>
       <import namespace="urn:connex:api:exception"/>
       <import namespace="http://schemas.xmlsoap.org/soap/encoding/"/>
       <complexType name="ArrayOf_xsd_anyType">
       <complexContent>
       <restriction base="soapenc:Array">
       <attribute ref="soapenc:arrayType" wsdl:arrayType="xsd:anyType[]"/>
       </restriction>
       </complexContent>
       </complexType>
       <complexType name="ArrayOf_tns6_PBMapiProperty">
       <complexContent>
       <restriction base="soapenc:Array">
       <attribute ref="soapenc:arrayType" wsdl:arrayType="tns6:PBMapiProperty[]"/>
       </restriction>
       </complexContent>
       </complexType>
       <complexType name="ArrayOf_tns2_IContact">
       <complexContent>
       <restriction base="soapenc:Array">
       <attribute ref="soapenc:arrayType" wsdl:arrayType="tns2:IContact[]"/>
       </restriction>
       </complexContent>
       </complexType>
       </schema>

      Is there anything missing in my WSDL?
      What is the solution to this problem?

      Thanks in advance
      Vishnu