11.2. Web-Service Models

There are two main models used in the development of Web Services; each of these models can then be further subdivided. The first model is a messaging model. In this model, messages or documents are being exchanged between the server and one or more clients. Messaging is inherently asynchronous, although you can write an application that sends a message and then waits for a message in response, causing synchronous behavior.

The second model is based on Remote Procedure Calls (RPC). RPC systems are generally synchronous, with calls expected to return some value just as in local procedure calls. Again, this is not an absolute. RPC models might be implemented synchronously (wait for a response), asynchronously (response ...

Get J2EE™ and JAX™: Developing Web Applications and Web Services 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.