I'm having a really weird problem. I have a basic xml-rpc server set up, and a test function that takes a string and echos it back. I made a simple client, and everything goes fine. I put it on another server, everything goes fine. I put that xml-rpc server code on another server, the exact same code that's working on my other two boxes, and suddenly I get a "Message: Calling parameters do not match signature" error. From the look of it, that seems to mean the paramater definition isn't correct. However, it's the same exact code that's working everywhere else. The entire thing is just
Code:
public function indexAction() {
//Default action
/**
* Test of api. Echo back a string
*
* @param string $textToEcho
* @return string
*/
function echoTest($textToEcho)
{
return $textToEcho;
}
$server = new Zend_XmlRpc_Server();
$server->addFunction("echoTest");
echo $server->handle();
}
Any idea why this would work on three linux servers, but not the 4th? They're almost the exact same php/apache configuration too, aside from being centos while the others are ubuntu. I even tried another centos machine, and it worked fine there.
The exact error message I get is
Code:
An error occurred
Application error
Exception information:
Message: Calling parameters do not match signature
Stack trace:
#0 /library/Zend/XmlRpc/Client/ServerProxy.php(92): Zend_XmlRpc_Client->call('echoTest', Array)
#1 [internal function]: Zend_XmlRpc_Client_ServerProxy->__call('echoTest', Array)
#2 /application/controllers/AccountingController.php(33): Zend_XmlRpc_Client_ServerProxy->echoTest('Test data')
#3 /library/Zend/Controller/Action.php(502): AccountingController->testAction()
#4 /library/Zend/Controller/Dispatcher/Standard.php(293): Zend_Controller_Action->dispatch('testAction')
#5 /library/Zend/Controller/Front.php(946): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http))
#6 /public/index.php(13): Zend_Controller_Front->dispatch()
#7 {main}
Request Parameters:
array(3) {
["controller"]=>
string(10) "accounting"
["action"]=>
string(4) "test"
["module"]=>
string(7) "default"
}