Forums Register Login

ArrayList as output from WS

+Pie Number of slices to send: Send
Hi,
Iam using jws approach of Apache axis to test my application.Is it possible to get the output in the form of ArrayList from a WS??If so,how?

for a String output,we use the following :
call.setReturnType(XMLType.XSD_STRING);

similarly for ArrayList or Vector ..whats the code.

can anybody help me out?

Thanks in advance!
Kartik
+Pie Number of slices to send: Send
You could write a custom serializer and a custom deserializer for ArrayList, but it would probably be easier (and safer in terms of portability) to change your code to use an array instead of ArrayList (e.g. "User[]" instead of an ArrayList full of User objects).
Don't play dumb with me! But you can try this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 964 times.
Similar Threads
How to learn WS*?
Explanation required for this answer
New to Web services- Problem
ws greenhorn search for ws
Using Lists/ArrayLists, code doesn't work
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 23:05:22.