This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of Darcy DeClute's Scrum Master Certification Guide: The Definitive Resource for Passing the CSM and PSM Exams and have Darcy DeClute on-line!
See this thread for details.
  • 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
  • Devaka Cooray
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Jeanne Boyarsky
  • Tim Cooke
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
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!
 
Can you really tell me that we aren't dealing with suspicious baked goods? And then there is this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic