The function server.execute(...) sends the request to the server. The procedure sum(17,13) is called on the server as if it were a local procedure. The return value of a procedure call is always an Object.

Here "sample" denotes a handler that is defined in the server.

Note that all the parameters of the procedure call are always collected in a Vector.

The XmlRpcClient class is constructed by specifying the "web address" of the server machine followed by /RPC2.

localhost - means the local machine

You can specify an IP number instead of localhost, e.g. 194.80.215.219

You can specify a domain name like xyz.dyndns.org

You can specify a port number along with domain name as xyz.dyndns.org:8080. The default port is 80

Note that the result of the remote procedure call is always an Object and it has to be casted to the appropriate type.

When problems occur (no connection, etc.), an Exception is thrown and it has to be caught using catch statement.

Due to the above call, a client sends the following message to the server. Note that this is handled by server.execute(...) internally and you have nothing to do with it.