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
}

