Python Library Reference
Previous: Up: 11.22 xmlrpclib Next:


11.22.9 Example of Client Usage

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

Python Library Reference
Previous: Up: 11.22 xmlrpclib Next:

Release 2.4.4, documentation updated on 18 October 2006.
See About this document... for information on suggesting changes.

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