// Create the client, identifying the server
XmlRpcClient client =
new XmlRpcClient("http://localhost:8898");
// Create the request parameters using user input
Vector params = new Vector();
params.addElement(new String (zipcode));
// Issue a request
Object result =
client.execute("weather.getWeather", params);
String resultStr = result.toString();
int temperature = Integer.parseInt(resultStr);
return temperature;