• Post Reply Bookmark Topic Watch Topic
  • New Topic

ArrayList as output from WS  RSS feed

 
Kartik Ruppa
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!