Chapter 12. JAX-RPC Client APIs

JAX-RPC defines three programming models that Java applications can use to access Web services: generated stubs, dynamic proxies, and DII. Of these, the one you're most likely to use is generated stubs. Dynamic proxies and DII are interesting but less practical for most development efforts. That said, this chapter pays a great deal of attention to all three programming models so you can become familiar with each, and apply them as you see fit.

Generated Stubs

The purpose of the generated stub programming model is to provide object façades for accessing Web service endpoints. In other words, generated stubs make Web service endpoints look like local Java objects. A generated stub is created by a utility called a

Get J2EE™ 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.