Testing Locally
This sample calls out to a public web service endpoint to return the stock quote value. For testing purposes, the samples directory includes a
tibco.bwce.sample.binding.soap.http.StockQuoteExternal sample. This acts as a public endpoint that needs to be deployed in your Cloud Foundry environment and the generated routable URL used in the HTTPClient configuration of the StockQuoteService.
Before you begin
The tibco.bwce.sample.binding.soap.http.StockQuoteExternal has to be deployed in your Cloud Foundry environment.
- Procedure
- In the samples directory, select Accessing Samples for more information. and double-click tibco.bwce.sample.binding.soap.http.StockQuote. See
- From the Project Explorer expand the tibco.bwce.sample.binding.soap.http.StockQuote project.
- Set the Application Profile to PCF. 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.StockQuote.application.
- Click
Debug.
The sample now runs in the debug mode.
The console window shows engine messages similar to:
12:07:31.300 INFO [Thread-25] com.tibco.thor.frwk.Application - TIBCO-THOR-FRWK-300006: Started BW Application [tibco.bwce.sample.binding.soap.http.StockQuote.application:1.0] 12:07:31.301 INFO [Framework Event Dispatcher: Equinox Container: 90d08c1f-1e9d-0015-1579-c1f8429c33a2] com.tibco.thor.frwk.Application - Started by BusinessStudio, ignoring
Result This sample is triggered using the soap client sample under . For more information, see StockQuote Soap Client