ArrayList in WebService

I am newbie to WebService. I was able to develop a sample WebService using AXIS. The WebService had only primitive datatypes like int, String. Now i would like to move a step further. I would like to create a WebService that has non primitive data types like Collection Data Types etc. Any sample WSDD or tuturial link would be of great help. I didn't find any info in Axis documentation

public class TestDTOWS {

public TestDTOWS() {

}

public MyDTO testDTO(String s1, String s2){

MyDTO myDTO = new MyDTO();

System.out.println("setting s1"+s1);

System.out.println("setting s2"+s2);

myDTO.setInput1(s1);

myDTO.setInput2(s2);

ArrayList aList = new ArrayList();

aList.add("First");

aList.add("Second");

myDTO.setAList(aList);

return myDTO;

}

}

public class MyDTO implements Serializable{

public MyDTO() {

}

private String input1;

private String input2;

private ArrayList aList = new ArrayList();

//getters and setters for above member variables

}

[1094 byte] By [prashant1406a] at [2007-11-27 9:31:00]
# 1
For creating simple service with any type (primitive or complex type) no need of any tutorials. Use Simple webservice format ( .jWS). Just save your java application as .JWS and deploy under AXIS as per the document.
NiruMagica at 2007-7-12 22:44:34 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2

I would like to know a better approach. I created a WSDD but in the WSDL, it is showing ArrayList of any type.

<element name="AList" nillable="true" type="impl:ArrayOf_xsd_anyType"/>

<schema elementFormDefault="qualified" targetNamespace="http://localhost:8080/axis/services/elogService">

<import namespace="http://services.xyz.com"/>

<complexType name="ArrayOf_xsd_anyType">

<sequence>

<element maxOccurs="unbounded" minOccurs="0" name="item" type="xsd:anyType"/>

</sequence>

</complexType>

</schema>

</wsdl:types>

Is it possible to define any schema where i can define my arraylist. How can i map the schema to the WSDD

prashant1406a at 2007-7-12 22:44:34 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...