XML-RPC

From Wikipedia, the free encyclopedia

(Redirected from XMLRPC)
Jump to: navigation, search

XML-RPC is a remote procedure call protocol which uses XML to encode its calls and HTTP as a transport mechanism. [1]

Contents

XML-RPC is a very simple protocol, defining only a handful of data types and commands[2], 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 hundreds of pages and require considerable software support in order to be used.

XML-RPC 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.

Some people still prefer XML-RPC to SOAP because of its simplicity, minimalism, and ease of use.

JSON-RPC is similar to XML-RPC.

Name Tag Example Description
array
>
  >
    >>1404>>
    >>Something here>>
    >>1>>
  >
>
Array of values, storing no keys
base64
>eW91IGNhbid0IHJlYWQgdGhpcyE=>
Base64-encoded binary data
boolean
>1>
Boolean logical value (0 or 1)
date/time
.iso8601>19980717T14:08:55.iso8601>
Date and time in ISO 8601 format
double
>-12.53>
Double precision floating point number
integer
>42>

or

>42>
Whole number, integer
string
>Hello world!>
String of characters. Must follow XML encoding.
struct
>
  >
    >foo>
    >>1>>
  >
  >
    >bar>
    >>2>>
  >
>
Associative array
nil
/>
Discriminated null value; an XML-RPC extension

An example of a typical XML-RPC request would be:

 version="1.0"?>
>
  >examples.getStateName>
  >
    >
        >>40>>
    >
  >
>

An example of a typical XML-RPC response would be:

 version="1.0"?>
>
  >
    >
        >>South Dakota>>
    >
  >
>

A typical XML-RPC fault would be:

 version="1.0"?>
>
  >
    >
      >
        >
          >faultCode>
          >>4>>
        >
        >
          >faultString>
          >>Too many parameters.>>
        >
      >
    >
  >
>

  1. ^ Simon St. Laurent, Joe Johnston, Edd Dumbill. (June 2001) Programming Web Services with XML-RPC. O'Reilly. First Edition.
  2. ^ Dave Winer. (June 15, 1999) XML-RPC Specification UserLand Software, Inc.

Advanced Search
Included Web Search Engines


Safe Search

close

Top Matching Results

Occasionally Search.com will highlight specialized results that are based on the context of your query. Examples of specialized results include specific links to news, images, or video.

Top Matching Results may highlight information from other Search.com pages, content from the CNET Network of sites, or third party content. The listings are based purely on relevance. Search.com does not receive payment for listings in this section but our partners that provide this data may get paid for listing these products.

Sponsored Links

This section contains paid listings which have been purchased by companies that want to have their sites appear for specific search terms and related content. These listings are administered, sorted and maintained by a third party and are not endorsed by Search.com.

Search Results

Search.com sends your search query to several search engines at one time and integrates the results into one list which has been sorted by relevance using Search.com's proprietary algorithm. You can customize the list of search engines included in your metasearch from the preferences.

The search engines that are used in your metasearch may allow companies to pay to have their Web sites included within the results. To view the Paid Inclusion policy for a specific search engine, please visit their Web site. Search.com does not accept payment or share revenue with any search engine partner for listings in this section.