Previous: 11.20.8 Example of Client Up: 11. Internet Protocols and Next: 11.21.1 SimpleXMLRPCServer Objects

11.21 SimpleXMLRPCServer -- Basic XML-RPC server

The SimpleXMLRPCServer module provides a basic server framework for XML-RPC servers written in Python. The server object is based on the SocketServer .TCPServer class, and the request handler is based on the BaseHTTPServer .BaseHTTPRequestHandler class.

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 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


Previous: 11.20.8 Example of Client Up: 11. Internet Protocols and Next: 11.21.1 SimpleXMLRPCServer Objects
Release 2.2.3, documentation updated on 30 May 2003.
See About this document... for information on suggesting changes.

AltStyle によって変換されたページ (->オリジナル) /