title: Magento XML RPC Error
body: <p>I have created an XML-RPC User and I've assigned a role (with all resources) from admin panel: System/Web Services/XML-Rpc Users and Roles.</p>
  
  <p>Now I want to dump all cart products and send them to an external server.</p>
  
  <p>I'm using this code in app/design/frontend/default/theme/template/catalog/product/view.phtml:</p>
  
  <pre><code>$client = new Zend_XmlRpc_Client('http://mysite/api/xmlrpc/', 80);
  $session = $client-&gt;call('login', array('myuser', 'myapi'));
  $filterData = array('type' =&gt; array('in' =&gt; 'simple'));
  $product = $client-&gt;call('call', array($session, 'category_product.list', array($filterData)));
  var_dump($product);
  $server = new Zend_XmlRpc_Client('/xmlServer.php','www.server-site.com', 80);
  $result = $server-&gt;send($product); 
  </code></pre>
  
  <p>The problem is that I receive this error:</p>
  
  <pre><code>Fatal error: Call to a member function getUri() on a non-object in /var/www/html/zzz/lib/Zend/XmlRpc/Client.php on line 265 
  </code></pre>
  
  <p>This is the code from line 265:</p>
  
  <pre><code>if($http-&gt;getUri() === null) {
          $http-&gt;setUri($this-&gt;_serverAddress);
      }
  </code></pre>
  
  <p>I think that the problem comes from here:</p>
  
  <pre><code>$session = $client-&gt;call('login', array('myuser', 'myapi'));
  </code></pre>
  
  <p>But the user and api are valid. So I don't know what could it be.
  What is wrong in my code?</p>
  
  <p>Anticipated thanks!</p>