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

Offering a Web Service

Now that you have understood how to consume different types of web services with PHP and PEAR you are probably interested in learning how to offer a web service. So in the second part of this chapter we will use the XML_RPC package to offer a simple service that can easily be consumed by different clients and programming languages. Further we will offer the exact same functionality as a SOAP service and will see how intuitive working with SOAP and WSDL can be when using PHP 5 and Services_Webservice. Last we will offer a REST-based service using nothing more than a web server, PHP, and XML_Serializer.

Offering XML-RPC-Based Web Services

In the first part of this chapter we started our excursion into the field of web services ...

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