216
Developing Client Applications to Use a Web Service
JAXR
Registry
Lookup
Client
Publishes
JAX RPC API
Call Interface
Web Service
JAX RPC Runtime
Figure 5.7
DII Call Interface
Using the DII
Call
interface allows a client application to define at runtime
the service name and the operations it intends to call on the service, thus giving
the client the benefit of loosely coupling its code with that of the service. The
client is less affected by changes to the service, whether those changes involve
access to the service or data requirements. In addition, the DII communication
model permits Web service access code to be standardized among a set of clients
and reused as a component.
E
DII involves more work than stubs or dynamic proxies and should be used
sparingly. You may consider using this mode if a service changes frequently.
New Page 1