This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell 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

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: 12792
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
GeeCON Prague 2014
subject: Complex parameter types