The problem, pass in the xml-rpc client argument a string(just a string!), a server comes an array of one element with this value, following code, someone tell me what this is I would be very grateful, even below accidentally found a temporary solution which I don't like because it's either a bug or something, when something may stop working.
The client implementation
$urlXmlRpcServer = '
http://example.com/xml-rpc'; try
{
$xmlRpcClient = new Zend_XmlRpc_Client($urlXmlRpcServer);
$class = $xmlRpcClient->getProxy();
$check = $class->needString($value);
}
catch(Exception $e)
{}
Server implementation
/**
* function needString
* @param string $string
*/
needString function($string)
{
$value = $string;
//Code
}
$server = new Zend_XmlRpc_Server();
$server->addFunction('needString');
echo $server->handle();
Workaround
/**
* function needString
* @param string $string
*/
needString function($string)
{
ob_start();
print_r($string);
$value = ob_get_clean();
//Code
}