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.

Prerequisites

The tibco.bwce.sample.binding.soap.http.StockQuoteExternal has to be deployed in your Cloud Foundry environment.

Procedure

  1. In the samples directory, select samples > Container > cloudfoundry > binding > soap > http > StockQuoteService and double-click tibco.bwce.sample.binding.soap.http.StockQuote. See Accessing Samples for more information.
  2. From the Project Explorer expand the tibco.bwce.sample.binding.soap.http.StockQuote project.
  3. Set the Application Profile to PCF. See Setting the Default Application Profile.
  4. Click Run > Debug Configurations.
  5. From the Debug Configuration wizard, expand BusinessWorks Application and select BWApplication.
  6. Click the Applications tab and then click the Deselect All button if you have multiple applications.
  7. Select the checkbox next to tibco.bwce.sample.binding.soap.http.StockQuote.application.
  8. 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 undercloudfoundry > binding > soap > http > StockQuoteClient. Refer to StockQuote Soap Client for more information.