| 1 |
#!/usr/bin/python |
| 2 |
## |
| 3 |
## Non-RPC::XML, non-perl client for compatibility checking |
| 4 |
## |
| 5 |
## You may need to install the python xmlrpc library |
| 6 |
## |
| 7 |
## http://www.pythonware.com/products/xmlrpc/ |
| 8 |
## |
| 9 |
## $Id: reallynonpoe_client.py,v 1.1.1.1 2001/08/09 17:27:31 fletch Exp $ |
| 10 |
## |
| 11 |
import sys, xmlrpclib |
| 12 |
|
| 13 |
if len( sys.argv ) == 2: |
| 14 |
url = sys.argv[1] |
| 15 |
else: |
| 16 |
url = "http://localhost:7777/" |
| 17 |
|
| 18 |
server = xmlrpclib.Server( url ) |
| 19 |
|
| 20 |
try: |
| 21 |
print "string:array\t", server.spoo( [ 1, 2, 3, 4, 5, ] ) |
| 22 |
print "int\t\t", server.spoo( ) |
| 23 |
except xmlrpclib.Fault, f: |
| 24 |
print f.faultCode, ":", f.faultString |
| 25 |
except: |
| 26 |
print "Problem calling spoo: ", sys.exc_value |
| 27 |
|
| 28 |
|
| 29 |
sys.exit() |