StockQuote Soap Client
- Procedure
- From the File Explorer navigate to the samples directory, select Accessing Samples and double-click tibco.bwce.sample.binding.soap.http.StockClient. For more information, see
- From the Project Explorer expand the tibco.bwce.sample.binding.soap.http.StockQuoteClient project.
- Set the Application Profile to PCF. For more information, see Setting the Default Application Profile.
- Click .
- From the Debug Configuration wizard, expand BusinessWorks Application and select BWApplication.
- Click the Applications tab and then click the Deselect All button if you have multiple applications.
- Select the checkbox next to tibco.bwce.sample.binding.soap.http.StockQuoteClient.application.
- Click
Debug.
The sample now runs in the debug mode.
Understanding the Configuration
The Process uses an Invoke Activity to call out to the StockQuote application. The process can be configured by dragging the concrete WSDL, in this case
StockQuote_gen1.wsdl
onto the workspace canvas and selecting the
Invoke Operation option
The Reference created is set to type Binding - Reference. Create a SOAP/HTTP reference bindng that uses a HTTP Client Resource.
The default host for the HTTP Client Resource should point to your Cloud Foundry routable URL for the Stock Quote application. For example,
stockquote.testqa.com
. The Log output will display the current stock quote value for the symbol which in this case is hard coded to
GOOG
.