• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Method Signatures Using AXIS

 
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic