// Create the client, identifying the server
XmlRpcClient client =
new XmlRpcClient("http://localhost:8899/");
// Create the request parameters using user input
Vector params = new Vector();
params.addElement(new Double (radius));
// Issue a request
Object result =
client.execute("area.circleArea", params);
String resultStr = result.toString();
double area = Double.parseDouble(resultStr);
return area;