16.4. Consuming a JAX-RPC Web Service
There are actually several ways in which a client can connect to and utilize a JAX-RPC Web Service. We'll look at the dynamic possibilities in Chapter 18. Here, we'll look at the static case, in which we use an xrpcc-generated Stub class.
If you're providing a Web Service, you'll want to create at least one client to ensure that the service actually works; a static client is ideal for this use. Static clients are also a good choice if you are redistributing client software, rather than having service users develop their own clients.
Once you get to the case where users are finding your service dynamically, it's really up to them whether to use static or dynamic clients. Static clients are easier to develop, ...
Get J2EE™ and JAX™: Developing Web Applications and Web Services 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.