wood burning stoves 2.0*
The moose likes Web Services and the fly likes Invoking a method in WSDL file from client class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Invoking a method in WSDL file from client class" Watch "Invoking a method in WSDL file from client class" New topic
Author

Invoking a method in WSDL file from client class

Prashanth Chandra
Ranch Hand

Joined: Dec 07, 2005
Posts: 79
Hi,

I have got a WSDL file and I have to invoke certian methods from a client class from the WSDL file. What exactly should I do to invoke them from a Java standalone program /servlet/JSP. There is a sayHello() method in the WSDL. Please tell me how to invoke that method from client side. Aslo please let me know the jar files that are needed.



Thanks in advance
Prashanth
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
In case you are using AXIS you can use the WSDL2Java program to generate all the client classe and then use those classes to write a program which would make use of the program and call the web service for you.

For some initial help you can go through the samples that comes with the AXIS bundle.

or look for the tutorial

http://www.xmethods.com/ve2/ViewTutorials.po


Rahul Bhattacharjee
LinkedIn - Blog
 
Consider Paul's rocket mass heater.
 
subject: Invoking a method in WSDL file from client class