s i s t e m a o p e r a c i o n a l m a g n u x l i n u x | ~/ · documentação · suporte · sobre |
5. A Sample API: sumAndDifferenceTo demonstrate XML-RPC, we implement the following API in as many languages as possible.
This function takes two integers as arguments, and returns an XML-RPC <struct> containing two elements:
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.html. (This URL won't do anything in a browser; it requires an XML-RPC client.) |