Using the XML-RPC libray on the client side is quite straightforward.
Here is some sample code:
XmlRpcClient xmlrpc = new XmlRpcClient ("http://localhost:8080/RPC2");
Vector params = new Vector ();
params.addElement ("some parameter");
// this method returns a string
String result = (String) xmlrpc.execute ("method.name", params);
Note that execute can throw XmlRpcException and IOException,
which must be caught or declared by your code.
To quickly test your installation you can issue the following commands:
java org.apache.xmlrpc.WebServer
java org.apache.xmlrpc.XmlRpcClient http://localhost:8080 echo test 123
This should write [test, 123], which is the parameter array you sent to the echo
handler of the XML-RPC server.