Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Method Signatures Using AXIS

 
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
 
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 ...
 
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.
 
Hey! Wanna see my flashlight? It looks like this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic