I'm trying to workout how to use org.apache.xmlrpc.client.XmlRpcClient in python.
I'm using code in https://github.com/mcasperson/vaultdemo/blob/master/src/main/java/com/redhat/ecs/App.java :
final XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
config.setServerURL(new URL(args[0]));
config.setBasicUserName(args[1]);
config.setBasicPassword(args[2]);
final XmlRpcClient client = new XmlRpcClient();
client.setConfig(config);
final Object[] params = new Object[] {"1376"};
final String retValue = (String) client.execute("ContentAPI.queryResult", params);
I was trying following python code, but I'm not getting anywhere:
from xmlrpclib import ServerProxy
s = ServerProxy(url)
print s.client.execute("ContentAPI.queryResult",1376)
What how do I pass the username and password to python's ServerProxy client?
Your help is much appreciated