1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$client = new Zend_Http_Client();
$client->setUri("http://www.example.com/test1");

$xmlRpcClient = new Zend_XmlRpc_Client("http://www.example.com/test2",$client);
$xmlRpcClient->call('someFunc'); // Who you gonna call? ... /test1 -> Incorrect! Should be what we passed in constructor

$xmlRpcClient->getHttpClient()->setUri('http://www.example.com/test2');
$xmlRpcClient->call('someFunc'); // Who you gonna call? ... /test2 -> Correct!

/*

So this is a bit tricky. When the constructor for the Zend_XmlRpc_Client gets called, it should override the Zend_Http_Client URI value. However after construction, the override should no longer happen (as we be can be re-using an http client).

*/