views:

254

answers:

2

Hi,

Any idea on what would make this happen? Im trying to use XML RPC zend version but anytime I try to include the client I get some sort of error. Its like its including the client, but then the client does not know how to include the files after that...

test connect script is located in root directory, with the following -

require_once 'lib/Zend/XmlRpc/Client.php';
$client = new Zend_XmlRpc_Client('http://mydomain.com/api/xmlrpc/');

Any help would be appreciated!

+2  A: 
Alan Storm
thanks for the reply. Ok im confused. The class is in the file Im requiring already, its the first thing declared in the file Client.php is: class Zend_XmlRpc_Client {So doesent that mean it should be working???
thrice801
Acording to your title the class it can't find it Zend_Http_Client, not Zend_XmlRpc_Client.
Alan Storm
Ok ya my bad. Ok so I went back to including the mage.php file I was originally which should include everything as far as I understand, now I get this error. Fatal error: Uncaught exception 'Zend_XmlRpc_Client_FaultException' with message 'Calling parameters do not match signature' ..... Zend_XmlRpc_Client->call('login', Array) #1 {main} thrown.... - Any ideas on whats going on there? I checked the login and password and they work fine for me with soap.
thrice801
I think the problem there is you're not trying hard enough to solve your own problems.
Alan Storm
Um, well I spent probably 36 hours on that problem before giving up. Maybe youre right, but considering that I have only been writing PHP for probably 3 months or so, there are some gaps in my knowledge, but literally I tried everything I could think of....
thrice801
A: 

I was just trying xmlrpc in a Magento extension. Finally got it working, here's what you have to put at the start of the file before the class declaration:

require_once 'lib/Zend/Loader.php';
Zend_Loader::registerAutoload();
youngi