

We echo the servers handle method, and voila, our very simple and basic XMLRPC server is done. We instantiate Zend_XmlRpc_Server and add class which will respond to calls from client, this will be our Application_Model_Data class and we will set its namespace as cf. $server->setClass(‘Application_Model_Data’, ‘cf’) įirst, we disable our view. $this->_helper->viewRenderer->setNoRender() Lets open our Server controller ( application/controllers/Server.php) and start building XMLRPC server.Ĭlass ServerController extends Zend_Controller_Action Our project is ready and all files created earlier are in it. Now we’re ready to create our project in Eclipse, open PHP workspace, and go to File->New->PHP project, enter xmlrpc-test as a project name and click Finish. We should test if our website is running properly, go to with your browser and you should see image similar to the one below. Because we’ll also create client side of XMLRPC lets create this controller now to finish out work with zf tool: zf create controller Client. Now we’ll create needed controllers and models.įirst run zf create controller Server (which creates our ServerController), then we’ll create our model zf create model Data. Afterwards step into this newly created directory xmlrpc-test. In your web server’s document root run zf tool with this command: zf create project xmlrpc-test.
