Skip to content

Instantly share code, notes, and snippets.

@tty
Created June 21, 2010 14:32
Show Gist options
  • Save tty/446932 to your computer and use it in GitHub Desktop.
Save tty/446932 to your computer and use it in GitHub Desktop.
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