Invoking a SOAP over HTTP Web Service Using Different SOAP Versions
This sample shows implementation of a service for determining zip code information. This includes getting information for the city for the specific zip code and calculating distance between two cites defined by their zip codes.
Procedure
Configure the Server
Configure the Client
Result
- For getCityInfoTest, the zip code defined in the zip field returns information about Urbana IL.
- For getCityDistanceTest, the distance between two zip codes is returned.
The following output is visible in the console:
12:37:20.751 INFO [bwThread:In-Memory STWorkProcessor-3] c.t.b.p.g.L.t.b.s.b.s.h.M.Log - Invoked cityinfo
12:37:20.774 INFO [bwThread:In-Memory STWorkProcessor-4] c.t.b.p.g.L.t.b.s.b.s.h.M.Log - getCityInfo:
city: Urbanastate: Illinois
location: Urbana, Illinois, United States
latitude: 44.11
longitude: 88.207
zip: 61801
12:37:22.642 INFO [bwThread:In-Memory STWorkProcessor-6] c.t.b.p.g.L.t.b.s.b.s.h.M.Log1 - Invoked cityDistance
12:37:22.650 INFO [bwThread:In-Memory STWorkProcessor-7] c.t.b.p.g.L.t.b.s.b.s.h.M.Log -getCityDistance: 4
Understanding the Configuration
The server process has two operations implemented: getCityInfo and getCityDistance are used to return information, based on zip codes.
The operations implemented in the server process are invoked using the getCityDistanceTest and getCityInfoTest test processes from the client project developed in ActiveMatrix BusinessWorks 5.x.