11.23 SimpleXMLRPCServer -- Basic XML-RPC server

The SimpleXMLRPCServer module provides a basic server framework for XML-RPC servers written in Python. Servers can either be free standing, using SimpleXMLRPCServer, or embedded in a CGI environment, using CGIXMLRPCRequestHandler.

class SimpleXMLRPCServer( addr[, requestHandler[, logRequests]])

Create a new server instance. The requestHandler parameter should be a factory for request handler instances; it defaults to SimpleXMLRPCRequestHandler. The addr and requestHandler parameters are passed to the SocketServer.TCPServer constructor. If logRequests is true (the default), requests will be logged; setting this parameter to false will turn off logging. This class provides methods for registration of functions that can be called by the XML-RPC protocol.

class CGIXMLRPCRequestHandler( )
Create a new instance to handle XML-RPC requests in a CGI environment. New in version 2.3.

class SimpleXMLRPCRequestHandler( )
Create a new request handler instance. This request handler supports POST requests and modifies logging so that the logRequests parameter to the SimpleXMLRPCServer constructor parameter is honored.



Subsections
See About this document... for information on suggesting changes.