Документ взят из кэша поисковой машины. Адрес оригинального документа : http://rtm-cs.sinp.msu.ru/manual/xmlrpc-howto/xmlrpc-howto-api.html
Дата изменения: Mon Jan 22 01:11:41 2001
Дата индексирования: Mon Oct 1 21:18:57 2012
Кодировка:
Sample API: sumAndDifference

Chapter 3. 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> containg 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. :-)