XML-RPC
Encyclopedia : X : XM : XML : XML-RPC
XML-RPC is a remote procedure call protocol which uses XML to encode its calls and HTTP as a transport mechanism. It is a very simple protocol, defining only a handful of data types and commands, and the entire description can be printed on two pages of paper. This is in stark contrast to most RPC systems, where the standards documents often run into the thousands of pages and require considerable software support in order to be used.
It was first created by Dave Winer of UserLand Software in 1998 with Microsoft. As new functionality was introduced, the standard evolved into what is now SOAP.
Data types
| Name | Tag Example | Description |
|---|---|---|
| array |
| Array of values, storing no keys |
| base64 | Base 64-encoded binary data | |
| boolean | Boolean logical value (0 or 1) | |
| date/time | Date and time | |
| double | Double precision floating number | |
| integer | Whole number, integer | |
| string | String of characters. Must follow XML encoding. | |
| struct |
| Array of values, storing keys |
| nil | Discriminated null value; an XML-RPC [extension] |
Examples
An example of a typical XML-RPC request would be:
An example of a typical XML-RPC response would be:examples.getStateName 41
A typical XML-RPC fault would be:South Dakota
faultCode 4 faultString Too many parameters.
See also
- Ajax (programming)
- OPML
- Web service
- component technologies
- List of Web service markup languages
- Second Life virtual environment which allows users to make XML RPC data calls to the Web
External links
- [XML-RPC Homepage]
- [Forum]
- [Tutorials]
- [Technology Reports]
- [Citations from CiteSeer]
- [Jabber-RPC] is XML-RPC over the Jabber protocol.
- [Secure Apache XML-RPC]
- [RemObjects SDK] provides support for XML-RPC, in addition to SOAP and others.
From Wikipedia, the Free Encyclopedia. Original article here. Support Wikipedia by contributing or donating.
All text is available under the terms of the GNU Free Documentation License See Wikipedia Copyrights for details.
