In this chapter, we have worked with various web services. We learned about the concepts behind XML-RPC and SOAP as well as the principle of keeping it simple that REST-based services follow. This chapter covered consuming those services as well as offering your own services to the public.
We have used the
XML_RPC package to access the web service offered by the PEAR website, which allows you to retrieve information about the offered packages. We have also used
Services_Google, which acts as a wrapper around PHP's SOAP extension to access the Google search API. By using
Services_Technorati, we accessed two REST-based services without having to worry about the transmitted XML documents. Using the Yahoo API as an example ...