aspose file tools*
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


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Complex parameter types" Watch "Complex parameter types" New topic
Author

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
Rancher

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

Bill
susha bhogs
Greenhorn

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
 
wood burning stoves
 
subject: Complex parameter types