Cotroller ?
I mean, just like...
function runXmlRpcAction()
{
Zend_Loader::loadClass('Zend_XmlRpc_Server');
$server = new Zend_XmlRpc_Server(); // Initializes XMLRPC server
require_once 'Listnews.php'; // Includes class files that attach to
server
$server->setClass('Listnews', 'news'); // Attaches class methods as
XML-RPC method handlers
$response = $server->handle(); // Handle RPCs
$response->setEncoding('UTF-8'); // Sets response character encoding
header( 'Content-Type: text/xml; charset=UTF-8' ); // Sets HTTP header
echo $response; // Outputs the response
}
Can anyone provide me the procedure to make a simple webservice using XMLRPC
?
--
View this message in context: http://www.nabble.com/Is-it-possible-to-write-the-Xmlrpc-server-code-as-an-action-inside-a-cotroller--tp21601672p21601672.html
Sent from the Zend Web Services mailing list archive at Nabble.com.
没有评论:
发表评论