zend framework 提供的webservices解決思路

來源:互聯網
上載者:User
zend framework 提供的webservices
誰有這樣的完整的例子。用到Zend_Soap_Server 等zend framework提供的soap擴充的。
想學一下,哪位大俠給提供一些資料,例子的更好啊。最好是那種能啟動並執行簡單小例子,謝謝啦

------解決方案--------------------
application/controllers/WebServiceController.php
PHP code
_helper->viewRenderer->setNoRender();    }        public function indexAction() {        if (isset($_GET['wsdl'])) {            $autodiscover = new Zend_Soap_AutoDiscover();                $autodiscover->setClass('Service_Helloworld');            $autodiscover->handle();        } else {            $soap = new Zend_Soap_Server("http://zf-demo.localhost/WebService/index/?wsdl");            $soap->setClass('Service_Helloworld');            $soap->handle();        }    }        public function testAction() {        $params = array(            'name' => 'tom'        );                $client = new SoapClient("http://zf-demo.localhost/WebService/index/?wsdl", array('trace' => 1));        echo $client->__soapCall('sayHello', $params);    }    }
------解決方案--------------------
探討

高手們 還有嗎?

------解決方案--------------------
zend framework 英文版的用不習慣,不知道有沒有漢化的,在此之前,我一直用的是EclipsePHP Studio ,還可以!!
  • 聯繫我們

    該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

    如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.