I am about to ask you a very stupid question as I am a completely new baby in Java Web Services world Request you to please help me out.
I wonder how can I identify the exact method signatures which is required to be invoked as a service. For Instance .... I want to access a 3rd party web service method. I got the WSDL file and generated the stub class using WSDL2Java utility of Axis2. Now I need to write the JAX-RPC client class which will call the remote method on the stub.
But after creating the stub object in my client class code, what are the steps I need to perform to identify the exact method names with their signature ? The stub java file looks confusing to me as it contains many methods and inner classes as well.
posted 6 years ago
There are two options; you can either look at the WSDL file. For WSDL 1.1 you should look in the <portType> element, for WSDL 2.0 the <interface> element.
In these elements there will be one or more <operation> elements, which name(s) will be reflected in the generated artifacts.
Oherwise, when using WSDL2Java, there will usually be an interface generated, which represents the interface of the web service. Try take a look if you can find this interface.