apache xmlrpc example

/ Published in: Java
Save to your folder(s)

just a comment

Copy this code and paste it in your HTML
  1. import org.apache.xmlrpc.client.XmlRpcClient;
  2. import org.apache.xmlrpc.client.XmlRpcClientConfigImpl;
  4. XmlRpcClientConfigImpl config = new XmlRpcClientConfigImpl();
  5. config.setServerURL(new URL(""));
  6. XmlRpcClient client = new XmlRpcClient();
  7. client.setConfig(config);
  8. Object[] params = new Object[]{new Integer(33), new Integer(9)};
  9. Integer result = (Integer) client.execute("Calculator.add", params);

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

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.