Home Page Home Page
 Home | Linux Administration | Corporate Services | Resources | About Us Support Center
Monthly Server Management One-time Server Services Other Services
Network Administration Network Monitoring Network Security High Availability Load Balancing Data Backup and Recovery
Linux HOWTOs Linux Guides Linux Articles New RFCs Vulnerability list Linux Journal
Testimonials Partners Careers Contact Us Site Map
A Sample API: sumAndDifference

5. A Sample API: sumAndDifference

To demonstrate XML-RPC, we implement the following API in as many languages as possible.

struct sample.sumAndDifference (int x, int y)

This function takes two integers as arguments, and returns an XML-RPC <struct> containing two elements:

sum

The sum of the two integers.

difference

The difference between the two integers.

It's not very useful, but it makes a nice example. :-)