This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Web Services and the fly likes Web Services with Complex Objects (Urgent !!) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Web Services with Complex Objects (Urgent !!)" Watch "Web Services with Complex Objects (Urgent !!)" New topic
Author

Web Services with Complex Objects (Urgent !!)

Suman Mazumder
Greenhorn

Joined: Mar 23, 2006
Posts: 2
Hi,

My last post was on a problem using IBM-RAD (Service) and AXIS2 (Client). That is one of the trial scenarios I'm working on nowadays. Hope, I'll get some useful reply soon.
Now, I need a suggestion about the application I'm working upon. It is as follows:

(i) The application (i.e. Service Class) takes some primitive,String and/or some bean object as input
(ii) It returns a bean object [or an array (can use collection class also if possible) of bean objects].
(iii) The bean properties are primitive,String , other bean objects, and/or some collection object(Vector / ArrayList etc.) i.e. it should handle complex objects.

(iv) The Service should run on Websphere and Client on Tomcat.



I'm now trying (by building test applications) a combination of IBM-RAD (Service) and AXIS2 (Client), but facing problems in handling array of beans and/or collection classes either on Service or on the Client side.

So, I need some suggestions on whether I'm going the right way, or need to change my approach (or technology). Any suggestion would be appreciated.

Please reply ASAP, it is urgent.

Thanks in advance,
Suman
Vinod K Singh
Ranch Hand

Joined: Sep 30, 2008
Posts: 198
Ideally you should not use Collections in web services. Restrict the complex types to primitives, String and/or array of these.

Thanks,
Vinod
http://blog.vinodsingh.com/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Web Services with Complex Objects (Urgent !!)