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
SCJP1.2, SCWCD1.4, SCBCD1.3, SCBCD 5.0, SCDJWS, SCEA, IBM Certified SOA Associate
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 ...
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: