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:
This chapter starts with the basic concept of building RESTful Web Services using the JAX-RS 2.0 API ...