O'Reilly logo

PHP Programming with PEAR by Stoyan Stefanov, Carsten Lucke

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Summary

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_Amazon and Services_Technorati, we accessed two REST-based services without having to worry about the transmitted XML documents. Using the Yahoo API as an example ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required