We have seen the structure of the SOAP message created when a call is placed to the Ship Rater GetQuickRates Web Service, and now we will investigate how to create the necessary Curl code to call this remote process and handle the response. The QuickRates class is used to control the definition and execution of the SOAP call to the GetQuickRates Web Service, as well as being used as a holder for individual result set values. The {constructor} code required to support this functionality is shown in Figure 21-3.

The QuickRates class serves two purposes: one is to control the execution of the SOAP call, and the other is to provide a mechanism to store the data values for one element of the returned result set. Therefore, we must provide ...

Get Enterprise Curl now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.