Web services in Java SE, Part 3: Creating RESTful Web services

Part 2 of this four-part series on Java SE Web services showed how to use the JAX-WS API to develop SOAP-based Web services. JAX-WS also supports RESTful-based Web services, which this article shows how to develop. It first defines and then builds and runs a library Web service, and next defines, builds, and runs a simple client that accesses this service.

Defining a library web service

The library Web service, which I’ve named Library, manages a library of books with their authors. It consists of a main Library class along with supporting Book and Author classes.

To read this article in full or to leave a comment, please click here