Hello World Webservice and client using Eclipse
1) Select a Dynamic
WebProject from the new Project Wizard and click next
2)Give a name to the project and select a webserver from the runtime
and click Finish.
3)Create a simple Class HelloImpl with a method which returns some text.
public class HelloImpl {
public String sayHelloWorld()
{
return "Hello World Web Service ";
}
}
4) Right Click on the
class and select
New->Other->

From the Wizard
Select WebServices-> Web Service and next>.

6)The Service Implementation should be the class we have written and the slider should be Start Service and click next.

7)click Finish

8) Click Start Server.

Creation Of Client which uses the service we created.
From the Wizard Select WebServices-> Web Service Client and next>.

11) select the wsdl from the resource bowser


12) click finish.

13) the client is generated and here is the output select the method we have written
14) click invoke and the result should print the string we returned.