Chapter 5. Using J2EE Connector Architecture 99
Service invocation
The resource adapter exposed as a service can be used in several different
ways. It can be used within the Business Process Container as a partner link. It
can also be used in conjunction with the Web Services Gateway, providing for
some routing and flexibility.
When the resource adapter is exposed as a service within the Business Process
Container, the clients make use of the Web Service Invocation Framework
(WSIF) to make requests using the binding type that was specified when the
service was deployed.
WSIF provides an abstract model that invokes Web services through a set of
APIs regardless of how the service is implemented and where it can be found.
WSIF is composed of these features:
???? An API, which provides binding independent access of a Web service through
the use of an abstract model of the service.
???? WSIF providers, which implement support for different transports and
encodings through the use of the dynamic port factory.
???? Utilities such format handlers, which support the functionality that is provided
by the WSIF providers and the API.
There are several binding types, including EJB, JMS, SOAP, and J2C. The WSIF
J2C binding extension provides for an easy mapping of ports, operations, and
messages to the resource adapters connection, interaction, and records. The
connector bindings extension allows the resource adapter WSDL to specify the
InteractionSpec values in a way that is understandable. A format binding
specifies what message style and encodings are used, when mapping the data
to its native format. For example, IBM CICS Resource Adapter, which uses
COBOL copybook, has an encoding value of ibmcobol.
The client looks up the port, where the resource adapter service is located and
uses the WSIFPort to create an operation that specifies the operation name as
well as input and output message types. It then creates an input object and sets
the parts of the message. Finally, the client executes the operation.
After the adapter service is created using the WSIF J2C binding extension, it can
then be wrapped into a service using one of the following bindings for easy
access within the application server.
???? EJB binding
Exposes the functionality as a EJB call into the resource adapter service.