head.daveops.net

Snippets for yer computer needs

Python - XMLRPC

Python - XMLRPC

@Python

Connecting to an XMLRPC server


 import xmlrpclib
 
 server = '<http://blah.com/XMLRPC>'
 svr = xmlrpclib.Server(server)
 
 session_id = '2'
 params = { "session_id" : int(session_id)}
 response = svr.foo.bar(params)