Download   Online Shop   Red Hat Network
Home  |  Products & Services  |  Support  |  Training  |  Partners  |  Documentation   
Red Hat Documentation

Overview | HOWTOs | mini-HOWTOs | FAQs | Linux Man-Pages

Sample API: sumAndDifference

4. 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. :-)

This function (and others) are available using the URL http://xmlrpc-c.sourceforge.net/api/sample.php. (This URL won't do anything in a browser; it requires a PHP client.)

 

 
 
Search for:  on    Powered by Google
Products & Services   :   Download   :   Support   :   Training   :   Partners & Programs
© 2001 Red Hat, Inc. All rights reserved.       About Red Hat   :   Legal statement   :   Privacy statement   :   Y2K statement   :   Contact Red Hat