I think the best way to do it is convert your ArrayList of java objects into an xml document and return. If your xml document is too big, you could stream it as outputstream, so you don't have to load all the data into memory. Having multiple methods, one for each field of information, does not look like a nicer design.
 
Praveen
----- Original Message -----
From: Suzy Fynes
Sent: Wednesday, October 13, 2004 11:53 AM
Subject: Object lists in axis

Hey,

 

Have a question, I have an object containing loads of information on a person e.g name, phone number, address etc I want to send someone a list of these people using axis. I store the list in an ArrayList containing objects of each person. Seen as ArrayLists are just for java its not good for a web service, so I created an array of objects. Now considering it has to be generic the objects can only be Strings, Integers etc

 

So my question is how can I return more than one piece of information using only Data type objects? Currently all web services ive deployed only use access one method, could I have say 5 methods all returning different information of the person. Ie. one method returns all the names, second one returns all phone numbers etc

 

Any help would be great!

Thanks,

Sue

 

Reply via email to