Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 21. Web Services > QuickRateOutputHolder

QuickRateOutputHolder

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.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial