O'Reilly logo

Developing RESTful Services with JAX-RS 2.0, WebSockets, and JSON by Bhakti Mehta, Masoud Kalali

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 1. Building RESTful Web Services Using JAX-RS

There are various ways to implement communication between heterogeneous applications. There are standards focusing on web services based on SOAP, WSDL, and WS* specifications; alongside these standards there is an emerging lightweight solution based on plain HTTP referred to as Representational State Transfer (REST).

REST is identified by the principles of addressable resources, constrained interfaces using HTTP verbs, representation, and statelessness.

The key principles of REST are:

  • Associating IDs to resources
  • Using standard HTTP methods
  • Multiple formats of data sent by a resource
  • Statelessness

This chapter starts with the basic concept of building RESTful Web Services using the JAX-RS 2.0 API ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required