Under the hood, the call() instance method of
Zend_XmlRpc_Client builds a request object
(Zend_XmlRpc_Request) and sends it to another method,
doRequest(), that returns a response object
(Zend_XmlRpc_Response).
The doRequest() method is also available for use directly:
Example 1044. Processing Request to Response
<?php
$client = new Zend_XmlRpc_Client('http://framework.zend.com/xmlrpc');
$request = new Zend_XmlRpc_Request();
$request->setMethod('test.sayHello');
$request->setParams(array('foo', 'bar'));
$client->doRequest($request);
// $client->getLastRequest() returns instanceof Zend_XmlRpc_Request
// $client->getLastResponse() returns instanceof Zend_XmlRpc_Response
Whenever an XML-RPC method call is made by the client through any
means, either the call() method,
doRequest() method, or server proxy, the last request
object and its resultant response object will always be available
through the methods getLastRequest() and
getLastResponse() respectively.




