Title: Message
Suzy,
 
Might want to check this out, it should offer all the answers.
 
 
Chris
-----Original Message-----
From: Suzy Fynes [mailto:[EMAIL PROTECTED]
Sent: 13 October 2004 17:23
To: [EMAIL PROTECTED]
Subject: RE: Object lists in axis

Great! So if the client is in .NET do I just write my bean as normal extending serializable and deploy it as a WSDD or jws??

 

Thanks for your help!

 

-----Original Message-----
From: Stevenson, Chris [mailto:[EMAIL PROTECTED]
Sent:
13 October 2004 17:17
To: '[EMAIL PROTECTED]'
Subject: RE: Object lists in axis

 

Was or wasn't? If would work whatever if you generated your client from the WSDL which you intern generated from your service class. We return tree structures and all manner of stuff from java to dotnet as long as classes are beans and are correctly described in WSDL. Can't speak for untyped clients however, that might need some investigating.

-----Original Message-----
From: Suzy Fynes [mailto:[EMAIL PROTECTED]
Sent:
13 October 2004 17:11
To: [EMAIL PROTECTED]
Subject: RE: Object lists in axis

Would this still work if the client of the service was a java one?

 

 

-----Original Message-----
From: Stevenson, Chris [mailto:[EMAIL PROTECTED]
Sent:
13 October 2004 17:02
To: '[EMAIL PROTECTED]'
Subject: RE: Object lists in axis

 

Use an array of java beans, beans are serializable without any trouble using BeanSerializer.

 

Create a bean called Person which contains getters/setters for each property plus a default empty constructor.

 

 

You will have to  create an entry in web.xml though, telling axis to use bean serializer for your service (i think).

 

HTH,

 

Chris

-----Original Message-----
From: Suzy Fynes [mailto:[EMAIL PROTECTED]
Sent:
13 October 2004 16:54
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

 



--------------------------------------------------------------------------------
The information contained herein is confidential and is intended solely for the
addressee. Access by any other party is unauthorised without the express
written permission of the sender. If you are not the intended recipient, please
contact the sender either via the company switchboard on +44 (0)20 7623 8000, or
via e-mail return. If you have received this e-mail in error or wish to read our
e-mail disclaimer statement and monitoring policy, please refer to
http://www.drkw.com/disc/email/ or contact the sender. 3167
--------------------------------------------------------------------------------



--------------------------------------------------------------------------------
The information contained herein is confidential and is intended solely for the
addressee. Access by any other party is unauthorised without the express
written permission of the sender. If you are not the intended recipient, please
contact the sender either via the company switchboard on +44 (0)20 7623 8000, or
via e-mail return. If you have received this e-mail in error or wish to read our
e-mail disclaimer statement and monitoring policy, please refer to
http://www.drkw.com/disc/email/ or contact the sender. 3166
--------------------------------------------------------------------------------



--------------------------------------------------------------------------------
The information contained herein is confidential and is intended solely for the
addressee. Access by any other party is unauthorised without the express
written permission of the sender. If you are not the intended recipient, please
contact the sender either via the company switchboard on +44 (0)20 7623 8000, or
via e-mail return. If you have received this e-mail in error or wish to read our
e-mail disclaimer statement and monitoring policy, please refer to
http://www.drkw.com/disc/email/ or contact the sender. 3166
--------------------------------------------------------------------------------

Reply via email to