Created
June 21, 2010 14:32
-
-
Save tty/446932 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SoapController extends Zend_Controller_Action | |
{ | |
public function indexAction() | |
{ | |
// disable the view and the layout of this action, as the soap | |
// server will handle all output | |
$this->_helper->layout->disableLayout(); | |
$this->getHelper('viewRenderer')->setNoRender(); | |
// create new soap server in `wsdl` mode | |
$server = new Zend_Soap_Server("http://example.org/jobtool.wsdl"); | |
// all soap calls will be forwarded to an instance of the jobtool class | |
$server->setObject(new Jobtool()); | |
// let the soap server handle the request | |
$server->handle(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment