Using SOAP UnBound Headers
SOAP Unbound headers can pass any Out-of-Band data or control information in the SOAP envelope. In this sample a simple getBook operation based on the specified interface WSDL file is implemented showing the use of SOAP Unbound Headers.
- Procedure
- In the samples directory, select and double-click tibco.bw.sample.binding.soap.http.SOAPUnboundHeaders. For more information, see Accessing Samples.
- In the Project Explorer expand the tibco.bw.sample.binding.soap.http.SOAPUnboundHeaders project.
- Fully expand the Processes directory and double-click ClientProcess.bwp.
- Click .
- At the left hand tree of Debug Configuration wizard, expand BusinessWorks Application and select BWApplication.
- Click Applications and then click the Deselect All button if you have multiple applications. Select the checkbox next to tibco.bw.sample.binding.soap.http.SOAPUnboundHeaders.application.
- Click
Debug.
This runs the sample in Debug mode.
- In
TIBCO Business Studio™ for BusinessWorks™, click the
Terminate
icon to stop the process.
:
Expected captchaID : CID007
Received captchaID : CID007
Understanding the Configuration
This sample shows the use of SOAP unbound headers on service and reference.
The service exposes a login method that accepts a username and password, and expects a captcha string to be passed using SOAP unbound headers. Verification of the received username and password returns a captchaID to caller.
The ClientProcess sends a username and password as part of request message and sends the captcha string using headers.
The ServerProcess receives the username and password and, on successful verification of credentials, returns a captchaID as part of the headers and returns a Boolean indicating login success or failure.