File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Web Services with Complex Objects (Urgent !!)" Watch "Web Services with Complex Objects (Urgent !!)" New topic

Web Services with Complex Objects (Urgent !!)

Suman Mazumder

Joined: Mar 23, 2006
Posts: 2

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,
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.

I agree. Here's the link:
subject: Web Services with Complex Objects (Urgent !!)
It's not a secret anymore!