Return to Snippet

Revision: 14057
at May 18, 2009 07:54 by daywalker2000


Initial Code
import org.apache.xmlrpc.client.XmlRpcClient;
    import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;

    XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
    config.setServerURL(new URL("http://127.0.0.1:8080/xmlrpc"));
    XmlRpcClient client = new XmlRpcClient();
    client.setConfig(config);
    Object[] params = new Object[]{new Integer(33), new Integer(9)};
    Integer result = (Integer) client.execute("Calculator.add", params);

Initial URL
http://ws.apache.org/xmlrpc/client.html

Initial Description
just a comment

Initial Title
apache xmlrpc example

Initial Tags
apache

Initial Language
Java