8. Web Services and Stateful Resources

ALMOST EVERY COMPUTER SYSTEM HAS SOME form of state or state management. By state, we mean a set of persistent data or information items that have a lifetime longer than a single request/response message exchange between a requestor and the Web service. An airline reservation system manages the current state of flights, reservations, airplane capacity, seating arrangements, and so on. This state lasts much longer than the duration of a particular set of message exchanges to create a reservation or cancel a reservation. In a supply chain, the current state of the request for quotes (RFQs), purchase orders, invoices and so on is managed. Most systems of any consequence have some form of state. Many Web service ...

Get Building Web Services with Java: Making Sense of XML, SOAP, WSDL, and UDDI, Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.