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 Complex parameter types Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Complex parameter types" Watch "Complex parameter types" New topic

Complex parameter types

Dudley Dawson
Ranch Hand

Joined: Dec 14, 2004
Posts: 57
Is it possible to call a web service with a complex type as a parameter.
Say I have a method:

myMethod(ComplexBean cb){

ComplexBean is made up of strings, floats, Collections, and possibly other beans. Is it possible to wrap this method in a web service?
I'm using Axis to implement the service. I assume that the client will use JAX-RPC or JAX-WS.
William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13037
If you intend the web service to be usable by clients other than Java, you should figure out some way to compose the actual request from types more generally supported. It will make life a LOT simpler.

susha bhogs

Joined: Mar 29, 2006
Posts: 6
You sould be able to invoke using the complex bean. I had tried in Weblogic 9. using the XML Bean. It works
I agree. Here's the link:
subject: Complex parameter types
It's not a secret anymore!