Suzy,
It's possible, legitimate and reasonable to return arrays of complex objects
using SOAP. In other words, your Java objects should have fields that are
simple types, e.g., String, int, boolean, etc. Your method should return an
array of this type of object (not ArrayList). Doing so will make
]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
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
an
Thanks for your help!
How would I reference this to a java class
or would I have to write the soap manually?
-Original Message-
From: Pridemore, Russell
(MAN-Corporate) [mailto:[EMAIL PROTECTED]
Sent: 13 October 2004 17:07
To: '[EMAIL PROTECTED]'
Subject: RE: Ob
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:11To: [EMAIL PROTECTED]Subject: RE: Object lists in axis
Would this still work
if the client of the ser
Title: Message
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
I
return lists of objects like this:
/>
/>
Hope
this helps,
Russ
-Original Message-From: Suzy Fynes
[mailto:[EMAIL PROTECTED]Sent: Wednesday, October 13
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
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 an
Title: Message
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.
http://ws.apache.org/axis/java/apiDocs/org/apache/axis/encoding/ser/Be
10 matches
Mail list logo