SOAP Client
The ZipCodeServiceClient is a SOAP client for the ZipCodeServiceProvider to trigger the StockQuote application.
- Procedure
- From the File Explorer tab, navigate to the folder and then double-click tibco.bwce.sample.binding.soap.http.ZIPCodeServiceClient.zip. For more information, see Accessing Samples.
- From the Project Explorer tab expand the tibco.bwce.sample.binding.soap.http.ZIPCodeServiceClient project.
- Click .
- In the left-hand tree of 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.ZipCodeServiceClient.application.
- 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.
When client applications start successfully, you can 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.