Remoting Using Pear XML-RPC Clients and Services

Not all remote procedure calls are done using a simple HTTP protocol, and since there are many services that use the XML-RPC protocol, an example of creating and consuming a service is in order. Figure 7-2 shows the end result of the PHP medical application consuming a service made available by a fictitious medical supplier. This example will show how to use XML-RPC to create both the service and the service’s client.

XML-RPC uses an underlying HTTP connection to pass structured XML. The structure of the XML passed is defined by the creators of the service and must be known by the consumer in order to be used. This ability to pass data as XML from a service to a client is a form of modularity that ...

Get Oracle Database Ajax & PHP Web Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.