Implementing web service clients with Java EE 8

In this section, we're going to take a look at the JAX-RS client APIs and how to implement web service clients. I'm going to show you how you can set up and configure a JAX-RS client instance. We'll use WebTarget and its builder to specify request behavior, resolve URI template parameters, do invocation in response handling, and use GenericType implementations to get unmarshalled typed collections:

Conceptual view of this section

So far, we've implemented our small library service, which supports books, authors, and loans, via a REST API. We'll then implement a library client which is a standalone ...

Get Building RESTful Web Services with Java EE 8 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.