Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
For each Web Service our Curl application calls that can possibly return multiple items in a result set, we must provide an output holder that acts as a holding class for the result set items. The QuickRateOutputHolder class serves this purpose for our GetQuickRates Web Service, and the code required is shown in Figure 21-11.
As you can see in the code presented for the QuickRateOutputHolder class, it simply acts as a container for the possible result set items returned from calling the GetQuickRates Web Service. It has two public members: one for holding any error messages and the other for holding an array of the QuickRates class that the returned result set data will be transformed into.