You need to add phpdoc info about your function e.g. /** * Get time
* @return string */ _____ From: Ahmed Abdel-Aliem [mailto:[EMAIL PROTECTED] Sent: 03 July 2008 13:15 To: [email protected] Subject: [fw-general] XML-RPC startup 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' <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 ________________________________________________________________________ This email has been scanned for all known viruses by the MessageLabs Email Security Service and the Macro 4 plc internal virus protection system. ________________________________________________________________________ ________________________________________________________________________ This email has been scanned for all known viruses by the MessageLabs Email Security Service and the Macro 4 plc internal virus protection system. ________________________________________________________________________
