SCDJWS Study Guide: Web Service in General
Web Service Interaction Modes
The following are the application interaction modes supported by
JAX-RPC, the JAX-RPC providers may use any kind of low-level
interaction modes to support the Application interaction modes.
- Synchronous Request-Response Mode
In this mode the service client makes a request and waits(the current thread executing the request) for the response from the server; the service receives a request message, processes it, and send a correlated response message. The JAX-RPC APIs and service client programming model supports this mode through both the stub(or dynamic proxy) based model and DII Call interface.
- One-way RPC Mode
In this mode the service client invokes a remote method and continues without waiting for the response from the service endpoint; the service receives a request message, consumes it, but does not produce amy response message. The service client does not get any response(either return values or remote exceptions) from the Service endpoint. The JAX-RPC supports this one-way mode through DII Call interface.
- Non-blocking RPC Invocation
In this mode the service client thread invokes a remote method and continues proocessing without waiting for response; the service receives a request message, processes it, and produce a response message. It later processes the response by performing blocking receive. The JAX-RPC runtime does not need to support this mode.