Hi all,
i am trying to make a simple web service using XML-RPC to return the time
stamp
i am putting the server in the index controller :
-------------------------------------------------------------------
require_once 'Zend/XmlRpc/Server.php';
function theTime(){
return time();
}
$server = new Zend_XmlRpc_Server();
$server->addFunction('theTime');
echo $server->handle();
-------------------------------------------------------------------
and the client in request controller :
-------------------------------------------------------------------
require_once 'Zend/XmlRpc/Client.php';
try{
$client = new Zend_XmlRpc_Client('
http://me2resh/services/html/Index');
echo $client->call('theTime');
}catch (Zend_XmlRpc_Client_FaultException $e){
echo $e->getMessage();
}
-------------------------------------------------------------------
when i do this i get the following error :
Failed to parse response
what could be wrong here ?
--
Ahmed Abdel-Aliem