XML technologies / XML / Python & XML / Python, web services and SOAP / What about XML-RPC?

(Excerpt from "Python & XML" by Christopher A. Jones & Fred L. Drake, Jr.)

Before the first version of the SOAP specification was complete, Dave Winer at UserLand Software created a simpler specification for a Remote Procedure Call mechanism using XML over HTTP. Known as XML-RPC, it offers less support for complex data types, but has the advantage of simplicity. Developers adopted it quickly, partly because it filled a gap before SOAP was available and partly because the simpler specification allowed easy-to-use implementations.

Much of XML-RPC’s simplicity comes from its authors specifying many implementation details. While SOAP permits alternative transport protocols and serialization rules, XML-RPC specifies only HTTP POST requests and one set of serialization rules. Although SOAP’s flexibility may be valuable in some projects, many developers believe it can lead to bloated middleware and vendor dependence, which many XML users want to avoid.

Fredrik Lundh’s xmlrpclib module, which will become part of Python’s standard library in version 2.2, is available for older Python versions at downloads.effbot.org (at the bottom). It gives clients a proxy interface very similar to SOAPy and also supports simple server implementations.

For further details about XML-RPC, see "Programming Web Services with XML-RPC" by Simon St.Laurent, Joe Johnston and Edd Dumbill (O’Reilly, 2001). This book also covers using XML-RPC with Python.

  

 

 

 

back to top