Suzy,
You can define a custom serialization for your Person object and return array of Person objects. Or write Person as a pure java bean and use BeanSerialization. You can find lots of discussion on serialization in this forum.
 
Having seperate service for each method would be a week and unfriendly interface.
 
Thanks
Jai
-----Original Message-----
From: Suzy Fynes [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 13, 2004 10:54 AM
To: [EMAIL PROTECTED]
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