This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 12675
    
    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


Java Resources at www.wbrogden.com
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Complex parameter types
 
Similar Threads
How to use @GET with an input parameter of java type
how to call service method
Web service to pass a jar
RPC mapping file
jax rpc web service