SOAP Client

The ZipCodeServiceClient is a SOAP client for the ZipCodeServiceProvider to trigger the StockQuote application.

Prerequisites

Procedure

  1. From the File Explorer tab, navigate to the samples > docker > binding > soap > http > StockQuoteClient folder and then double-click tibco.bwce.sample.binding.soap.http.ZIPCodeServiceClient.zip. See Accessing Samples.
  2. From the Project Explorer tab expand the tibco.bwce.sample.binding.soap.http.ZIPCodeServiceClient project.
  3. Click Run > Debug Configuration.
  4. In the left-hand tree of Debug Configuration wizard, expand BusinessWorks Application and select BWApplication.
  5. Click the Applications tab and, then click the Deselect All button if you have multiple applications.
  6. Select the check box next to tibco.bwce.sample.binding.soap.http.ZipCodeServiceClient.application .
  7. Click Debug.
    The sample now runs in the debug mode.

    The Process uses an invoke Activity to call out the ZipCodeServiceProvider application. The process can be configured by dragging the concrete WSDL, in the case ZipInfo_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 binding that uses an HTTP Client Resource.

    The default host for the HTTP Client Resource should point to your machine IP on which your bwce-soap-http-app application is running.

Result

When client applications start successfully, you will see the following messages in the console log.
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.