File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Web Services and the fly likes java.util.Collection related classes suppourt in Java based Webservices Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "java.util.Collection related classes suppourt in Java based Webservices" Watch "java.util.Collection related classes suppourt in Java based Webservices" New topic
Author

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

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi

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

Thank you .


Save India From Corruption - Anna Hazare.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12682
    
    5
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

Java Resources at www.wbrogden.com
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Thank you very much .
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: java.util.Collection related classes suppourt in Java based Webservices
 
Similar Threads
Can I use Web Services for Part 2 assgmt ?
Compiler error?
JAX-WS / JAX-RPC comparison
I need to write a client for Testing the SEI implemented as stateless session bean
Apache CXF generic client - JAX-WS or wsdl2java stubs?