Chapter 7. Scenario: Data transformation and security 173
Bank Service interface definition
The open loan account process has two service interfaces, one for the business
process and one for the WebSphere Process Server or WebSphere Message
Broker interoperability channel.
The external process interface is called
LoanPrcInterface, which has one
request-response operation called
loanOperation (Example 7-6). Messages that
are exchanged between clients and the business process use this interface.
Example 7-6 LoanPrcInterface port
<wsdl:portType name="LoanPrcInterface">
<wsdl:operation name="loanOperation">
<wsdl:input message="tns:loanOperationRequestMsg"
name="loanOperationRequest"/>
<wsdl:output message="tns:loanOperationResponseMsg"
name="loanOperationResponse"/>
</wsdl:operation>
</wsdl:portType>
The interface for messages exchanged between the business process and the
message flow in WebSphere Message Broker is called
BankPortType. In the
sample application in Example 7-7, this interface is stored in bank.wsdl. The
interface has two operations. The first operation is called
BankVerifyCredit and is
used to deliver the client data to the broker’s VerifyCredit message flow. The
second operation is called
BankOpenAccount and is used to send the loan
account details and get a response (either true/false or success/failure flag).
Example 7-7 Internal bank operations using WebSphere Message Broker
<wsdl:portType name="BankPortType">
<wsdl:operation name="BankVerifyCredit">
<wsdl:documentation>
Verifies a client credit.
</wsdl:documentation>
<wsdl:input message="tns:VerifyCreditMsg"/>
</wsdl:operation>
Messages: The messages of the external process interface contain the
elements that are defined inside the bank_definitions.xsd schema. The Input
receives the VerifyCredit, and the output receives the ackOA element parts.
Operation similarities: These two operations are in the same port and are
both bound to an HTTPS call.