• Post Reply Bookmark Topic Watch Topic
  • New Topic

Sending ArrayList as param to Axis2 web service  RSS feed

 
Shashidhar Yarabati
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a class, say CitiesService which intern contains list(ArrayList) of cities.
If I to set this ArrayList ther server is recieving empty ArrayList.


I am getting ArrayList as empty.
Even I tried checking in server side as well(service class), Server is not recieving what iam sending..


Can any one help me on this?
[ August 08, 2008: Message edited by: Shashidhar Rao ]
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dont try to send an ArrayList, convert it to an Array. Arrays are universally understood by SOAP, ArrayLists are Java specific.

Bill
 
Shashidhar Yarabati
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply.

I check with Arrays, it is working fine.
But what if I want to send Object, say HashMap and something like that.

(I know it is not acceptable in Webservices, but in case if we need means?)
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
WS are meant to be cross platform; you should not send Java-specific data types. If you need to do that, convert them to a representation that can be understood by non-Java code as well.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!