• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

Method Signature identification in JAX-RPC Client

 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 !
 
Ranch Hand
Posts: 2198
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic