Testing in TIBCO Business Studio™ Container Edition

This section describes how to configure a server and client. It uses the HTTP service to return information about the city that given a ZIP code. The sample also provides the distance between the two cities as defined by their ZIP codes.

Procedure

  1. Configuring Server
    1. From the File Explorer tab, navigate to the samples > Container > docker > binding > soap > http > ZipCodeServiceProvider folder and then double-click tibco.bwce.sample.binding.soap.http.ZIPCodeServiceProvider.zip. See Accessing Samples.
    2. From the Project Explorer tab expand the tibco.bwce.sample.binding.soap.http.ZIPCodeServiceProvider project.
    3. Completely expand the Process directory and double-click ZipCodeService.bwp.
    4. Click Run > Debug Configuration.
    5. In the left-hand tree of 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 Check box next to tibco.bwce.sample.binding.soap.http.ZipCodeServiceProvider.application .
    8. Click Debug.
    The sample now runs in the debug mode.
  2. Configuring Client
    1. From the File Explorer tab, navigate to the samples > docker > binding > soap > ZipCodeServiceProvider folder and then double-click tibco.bwce.sample.binding.soap.http.ZIPCodeServiceClient.zip. See Accessing Samples.
    2. Update the HTTP shared resource configuration and verify the Host and Port values.
      If you have updated HTTPConnector.httpConnResource in the project, you must regenerate the concrete WSDL and import it into the tibco.bwce.sample.binding.soap.http.ZipCodeServiceClient project.
    3. From the Project Explorer tab expand the tibco.bwce.sample.binding.soap.http.ZIPCodeServiceClient project.
    4. Completely expand the Process directory and double-click ZipCodeClient.bwp.
    5. Click Run > Debug Configuration.
    6. In the left-hand tree of Debug Configuration wizard, expand BusinessWorks Application and select BWApplication.
    7. Click the Applications tab and then click the Deselect All button if you have multiple applications.
    8. Select the Check box next to tibco.bwce.sample.binding.soap.http.ZipCodeServiceClient.application.
    9. Click Debug.
      The sample now runs in the debug mode.
    10. Click Terminate, when all the listed operations are completely executed.

Result

When both the applications start successfully, you will see the following message in the console log.

For server application:

17:20:05.800 INFO  [Thread-12] com.tibco.thor.frwk.Application - TIBCO-THOR-FRWK-300006: Started BW Application [tibco.bwce.sample.binding.soap.http.ZipCodeServiceProvider.application:1.0]

For client application:

15:48:11.905 INFO  [Thread-12] com.tibco.thor.frwk.Application - TIBCO-THOR-FRWK-300006: Started BW Application [tibco.bwce.sample.binding.soap.http.ZipCodeServiceClient.application:1.0]
15:48:14.572 INFO  [bwEngThread:In-Memory Process Worker-6] c.t.b.p.g.L.t.b.s.b.s.h.Z.Log1 - Information of the City with Zip code 61801 is as follows.
Urbana
Illinois
Urbana, Illinois, United States
40.11
88.20761801
15:48:14.576 INFO  [bwEngThread:In-Memory Process Worker-6] c.t.b.p.g.L.t.b.s.b.s.h.Z.Log - 
The distance between the Cities  Urbana and Champaign is  4 miles.