Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

java.util.Collection related classes suppourt in Java based Webservices

 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Please let me know if java.util related classes like ArrayList are suppourted in JAX WS and JAX RPC ??

Thank you .
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13062
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are thinking of returning an ArrayList, don't.

Instead, return an array - arrays of the basic variables such as strings or ints are easily understood by web service clients. Nothing can be gained by trying to return an ArrayList. There are simple and convenient methods for getting an Array corresponding to the contents of an ArrayList.

Bill
 
Ravi Kiran Va
Ranch Hand
Posts: 2234
Eclipse IDE Firefox Browser Redhat
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic