File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Complex parameter types

 
Dudley Dawson
Ranch Hand
Posts: 57
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You sould be able to invoke using the complex bean. I had tried in Weblogic 9. using the XML Bean. It works
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic