ActiveState Code

Recipe 52214: Make an XML-RPC method call


Make a method call to an XML-RPC server using xmlrpclib (http://www.pythonware.com/products/xmlrpc/).

Python
1
2
3
4
5
6
7
from xmlrpclib import Server

server = Server("http://www.oreillynet.com/meerkat/xml-rpc/server.php")

print server.meerkat.getItems(
 {'search': '[Pp]ython', 'num_items': 5, 'descriptions': 0}
)

Sign in to comment