This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile 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: 13055
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