I was just wondering, how would I be able to send a xml-rpc request in python? I know you can use xmlrpclib, but how do I send out a request in xml to access a function?
I would like to see the xml response.
So basically I would like to send the following as my request to the server:
<?xml version="1.0"?>
<methodCall>
<methodName>print</methodName>
<params>
<param>
<value><string>Hello World!</string></value>
</param>
</params>
</methodCall>
and get back the response
Here’s a simple XML-RPC client in Python:
Works with this server:
To access the guts of
xmlrpclib, i.e. looking at the raw XML requests and so on, look up thexmlrpclib.Transportclass in the documentation.