A Few Examples

Over the preceding sections, you’ve seen quite a few examples of how the RPC library works and should now have a fairly clear understanding of the theory. This section puts it into practice with a few real-life demonstrations of how this technology can be used across the web.

Retrieving Meteorological Data with XML-RPC

I’ll begin with something simple—a basic RPC client-server implementation for information delivery over HTTP. I’ll be using a MySQL database as the data source, XML-RPC as the expression language for the procedure calls and responses, and PHP for the actual mechanics.

Requirements

Let’s assume the existence of a fictional government department that is charged with the task of obtaining meteorological information ...

Get XML and PHP 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.