exceptions the following exceptions are defined in xmlrpc clientfault indicates an xml-rpc fault the faultcode attribute contains string with the fault type the faultstring attribute contains descriptive message related to the fault protocolerror indicates problem with the underlying networking--for examplea bad url or connection problem of some kind the url attribute contains the uri that triggered the error the errcode attribute contains an error code the errmsg attribute contains descriptive string the headers attribute contains all the http headers of the request that triggered the error xmlrpc server (simplexmlrpcserverdocxmlrpcserverthe xmlrpc server module contains classes for implementing different variants of xml-rpc servers in python this functionality is found in two separate modulessimplexmlrpcserver and docxmlrpcserver simplexmlrpcserver(addr [requesthandler [logrequests]]creates an xml-rpc server listening on the socket address addr (for example('localhost', )requesthandler is factory function that creates handler request objects when connections are received by defaultit is set to simplexmlrpcrequesthandlerwhich is currently the only available handler logrequests is boolean flag that indicates whether or not to log incoming requests the default value is true docxmlrpcserver(addr [requesthandler [logrequest]creates documenting xml-rpc that additionally responds to http get requests (normally sent by browserif receivedthe server generates documentation from the documentation strings found in all of the registered methods and objects the arguments have the same meaning as for simplexmlrpcserver an instancesof simplexmlrpcserver or docxmlrpcserver has the following methodss register_function(func [name]registers new functionfuncwith the xml-rpc server name is an optional name to use for the function if name is suppliedit' the name clients will use to access the function this name may contain characters that are not part of valid python identifiersincluding periods if name is not suppliedthen the actual function name of func is used instead register_instance(instance [allow_dotted_names]registers an object that' used to resolve method names not registered with the register_function(method if the instance instance defines the method _dispatch(selfmethodnameparams)it is called to process requests methodname is the name of the methodand params is tuple containing arguments the return value of _dispatch(is returned to clients if no _dispatch(method is definedthe instance is lib fl ff