Forgot to add example code:

URL url = new URL("http://"; + "localhost" + ':' + 5077 + "/RPC2");
        
CommonsHttpClientXmlRpcTransportFactory factory = new
CommonsHttpClientXmlRpcTransportFactory(url.getHost(), url.getPort());
        
factory.setConnectionTimeout(20000);
factory.setTimeout(4000);
        
XmlRpcClient xmlRpcClient = new XmlRpcClient(url, factory);
XmlRpc.setDebug(true);                       
Object result;
result = xmlRpcClient.execute("test", new Vector());
System.out.println(result);

Reply via email to