# simple test program (from the XML-RPC specification) # server = Server("http://localhost:8000") # local server server = Server("http://betty.userland.com") print server try: print server.examples.getStateName(41) except Error, v: print "ERROR", v