0 Replies Latest reply on Dec 20, 2006 12:29 PM by 807607

    How to map ArrayList in WSDL using <complextype>

      I want know about how can i map the ArrayList in SOAP Client in WSDL file using <complextype>.I have been defined function like
      public synchronized ArrayList viewEmployees(String userId,String password)


      then in main() -
      SOAPClient s=new SOAPClient();

      In the web service bean i have defined the function like-

      public ArrayList viewEmployees(String userId, String password)
      //getting ArrayList from database
      ArrayList arr=getEmployees(userId);

      So, ArrayList contains the Employee objects, while each Employee object contains the individual records like userId, joining_date.

      and in WSDL-

      <complexType name="ArrayOfXSDAnyType">
      <element maxOccurs="unbounded" minOccurs="0" name="anyType" nillable="true" type="xsd:anyType"/>

      <wsdl:message name="viewEmployeeResponse">

      <wsdl:part name="viewEmployeeReturn" type="impl:ArrayOfXSDAnyType"/>


      So while running SOAPClient, it is giving me the SOAPException like
      No Serializer Found Error and IllegalArgumentException

      So how can i map the ArrayList ? plz help me...