Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Method Signatures Using AXIS  RSS feed

 
Ashish Garg
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
When we are genrating the WSDL using javatowsdl we are getting the methods signature changed. Lets say there is a method defined in the implementation code as String helloWorld(String message);
We get name of the argument as something in0 etc..in the wsdl.
This is also when we generate stubs and other classes using WSDLtoJava file the method signature will be changed to some thing like
String helloWorld(String arg0);
Is there a way we can avoid these method argument name changed. Actually we need to write some generic code for accessing some defined webservices at runtime.

Thanks,
Ashish Garg
 
Rr Kumaran
Ranch Hand
Posts: 548
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how can u call that a method signature change. a method signature only comprises method parameter types and return types and ofcourse method names but it doesn't include method parameter names.

anyway, when u r relying on axis-stubs why do u care whether what method parameter names are used in stubs. r u modifying the generated axis stubs for some other purpose. can u please more specific on what all u r modifying in axis generated stubs.

may be my understanding of ur problem is wrong ... please correct me if so ...
 
Robin Mulkers
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Ashish Garg:
Hi All,
When we are genrating the WSDL using javatowsdl we are getting the methods signature changed. ...
Thanks,

You should not use Javatowsdl because the WSDL that you get is RPC style and uses Soap encoding. You should comply to WS-I.org basic profile and use a document style and literal encoding.
If you do not do that, you will end up with a non standard web service. If this does not seem to be an issue, you might then consider RMI for your application and end up with a better solution where the original interface is entirely preserved.
Robin.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!