Creating a Simple Web Service and Client with JAX-RPC

This section shows how to build and deploy a simple Web service and client. A later section, Web Service Clients (page 326), provides examples of additional JAX-RPC clients that access the service. The source code for the service is in <INSTALL>/j2eetutorial14/examples/jaxrpc/helloservice/ and the client is in <INSTALL>/j2eetutorial14/examples/jaxrpc/staticstub/.

Figure 8-1 illustrates how JAX-RPC technology manages communication between a Web service and client.

Figure 8-1. Communication Between a JAX-RPC Web Service and a Client

The starting point for developing a JAX-RPC Web service is the ...

Get The J2EE™ Tutorial Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.