You may want to split the auto discovery and the soap processing:

You can do so with the setUri() method:

$autodiscover->setUri('http://localhost/soap/server/process');

------------------    
    /**
     * processAction
     *
     * Process Action
     */
    public function processAction() 
    {
        $this->_helper->viewRenderer->setNoRender();        
        $this->_helper->layout()->disableLayout();

        require_once 'Soap/HelloWorld.php';
        ob_end_clean();

        $soap = new Zend_Soap_Server('http://localhost/soap/server/wsdl');
        $soap->setClass('Soap_HelloWorld');
        $soap->handle();
    }
    /**
     * wsdlAction
     *
     * WSDL Action
     */
    public function wsdlAction() 
    {
        $this->_helper->viewRenderer->setNoRender();        
        $this->_helper->layout()->disableLayout();

        require_once 'Soap/HelloWorld.php';
        ob_end_clean();

        $autodiscover = new Zend_Soap_AutoDiscover();
        $autodiscover->setClass('Soap_HelloWorld');
        $autodiscover->setUri('http://localhost/soap/server/process');
        
        ob_start();
        $autodiscover->handle();
        ob_end_flush();
    }
------------------

Jeremy Postlethwaite
-- 
View this message in context: 
http://www.nabble.com/Building-a-MVC-based-Soap-server-tp18980591p24849508.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to