Assuming everything is installed properly, you should be able to run the above example and it will receive output similar to this:
Academic Free License (AFL)
Adaptive Public License (APL)
Affero General Public License
Aladdin Free Public License (AFPL)
Apple Public Source License (APSL)
Artistic License
Boost Software License
BSD License (original)
...
As you can see, the XML_RPC2 client takes care of formatting the request, transmitting the XML packet to the server and parsing the response. It makes the process very simple. Additionally, you can see how the client makes use of PHP5's advanced object-oriented capabilities to provide an incredibly simple interface. Every method available from the XML-RPC server is provided as a method call on the client object.
In our next example, we'll use geocoder.us, which provides a free XML-RPC service for geocoding addresses and intersections. You pass in an address string and they will look up that address and return the canonical address along with the latitude and longitude of that location.
// We don't really care why the call failed, just tell the
// user that we couldn't get their results
print "Sorry, unable to look up your address at this time.";
}
?>
You can see in this example, calling a method with parameters is as simple as calling any other XML-RPC method. The data is passed in as regular PHP variables or literals, and the XML_RPC2_Client Class takes care of translating it to the XML datatypes.