aspose file tools*
The moose likes Web Services Certification (SCDJWS/OCEJWSD) and the fly likes Method Signature identification in JAX-RPC Client Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Web Services Certification (SCDJWS/OCEJWSD)
Bookmark "Method Signature identification in JAX-RPC Client" Watch "Method Signature identification in JAX-RPC Client" New topic
Author

Method Signature identification in JAX-RPC Client

Sumeet Chakraborty
Ranch Hand

Joined: Feb 05, 2009
Posts: 45
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.

Please suggest.

Thanks !
Ivan Krizsan
Ranch Hand

Joined: Oct 04, 2006
Posts: 2198
    
    1
Hi!
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.
Best wishes!
 
jQuery in Action, 2nd edition
 
subject: Method Signature identification in JAX-RPC Client