import xmlrpclib server = xmlrpclib.ServerProxy("http://yourAddressHere/RPC2") try: value = server.get("sys.info.sysName") print "sys.info.sysName = ", value except xmlrpclib.Fault, f print "XML-RPC Fault: ", f
Example 2: Converting fault messages arriving at the server.