handle_request([request_text]processes an xml-rpc request by defaultthe request is read from standard input if request_text is suppliedit contains the request data in the form received by an http post request examples here is very simple example of writing standalone server it adds single functionadd in additionit adds the entire contents of the math module as an instanceexposing all the functions it contains tryfrom xmlrpc server import simplexmlrpcserver python except importerrorfrom simplexmlrpcserver import simplexmlrpcserver python import math def add( , )"adds two numbersreturn + simplexmlrpcserver(('', ) register_function(adds register_instance(maths register_introspection_functions( serve_forever(here is the same functionality implemented as cgi-scripttryfrom xmlrpc server import cgixmlrpcrequesthandler python except importerrorfrom simplexmlrpcserver import cgixmlrpcrequesthandler python import math def add( , )"adds two numbersreturn + cgixmlrpcrequesthandler( register_function(adds register_instance(maths register_introspection_functions( handle_request(to access xml-rpc functions from other python programsuse the xmlrpc client or xmlrpclib module here is short interactive session that shows how it worksfrom xmlrpc client import serverproxy serverproxy( add( , system listmethods(['acos''add''asin''atan''atan ''ceil''cos''cosh''degrees''exp''fabs''floor''fmod''frexp''hypot''ldexp''log''log ''modf''pow''radians''sin''sinh''sqrt''system listmethods''system methodhelp''system methodsignature''tan''tanh' tan( lib fl ff