A Simple Example: HelloWorld
This example shows you how to use JAX-RPC to create a Web service named HelloWorld. A remote client of the HelloWorld service can invoke the sayHello method, which accepts a string parameter and then returns a string.
http://java.sun.com/webservices/docs/ea2/tutorial/doc/JAXRPC3.html