Zend Rest Client问题

我有以下代码
class ReservationController extends Zend_Controller_Action
{
    public function init()
    {
    }

    public function indexAction()
    {
        $this->_helper->viewRenderer->setNoRender();
        $this->_helper->layout->disableLayout();

        $soap = new Zend_Rest_Server();
        $soap->setClass('Someclass');

        $soap->handle();
    }
}
<?php

class IndexController extends Zend_Controller_Action
{
private $_URI = "http://www.mysite.local/crm/reservation";
    public function clientAction() {
        $this->_helper->viewRenderer->setNoRender();
        $this->_helper->layout->disableLayout();
        $client = new Zend_Rest_Client($this->_URI);
       echo $client->sayHello('nisanth')->get();

    }

}
和类和方法一样
<?php
class Someclass
{
/**
* Say Hello
*
* @param string $who
* @return string
*/
function sayHello($who)
{
    return "Hello $who";

}
} 
但是在打电话的时候 我收到了一个错误   消息:REST响应错误:simplexml_load_string()   [function.simplexml-load-string]:^ 请帮我解决这个问题     
已邀请:
听起来好像你没有从REST请求中返回XML响应。 SimpleXML仅在未将有效XML作为参数时失败。 确保您的REST服务器实际使用Zend_REST_Server,它将函数的返回值输出到XML响应中。 有关Zend_Rest_Client如何工作的更多信息:http://framework.zend.com/manual/en/zend.rest.client.html 有关Zend_Rest_Server的更多信息: http://framework.zend.com/manual/en/zend.rest.server.html     

要回复问题请先登录注册