Code

Changes between Version 6 and Version 7 of XML-RPC


Ignore:
Timestamp:
09/18/06 09:12:01 (8 years ago)
Author:
wmealing@…
Comment:

Modified the test client to work correctly.

Legend:

Unmodified
Added
Removed
Modified
  • XML-RPC

    v6 v7  
    101101import xmlrpclib 
    102102rpc_srv = xmlrpclib.ServerProxy("http://localhost:8000/xml_rpc_srv/") 
    103 result = rpc_srv.multiply(sys.argv[1], sys.argv[2]) 
     103result = rpc_srv.multiply( int(sys.argv[1]), int(sys.argv[2])) 
    104104print "%d * %d = %d" % (sys.argv[1], sys.argv[2], result) 
    105105}}}