Skip to content

Instantly share code, notes, and snippets.

@gpfiel
Created February 27, 2014 20:02
Show Gist options
  • Save gpfiel/9258291 to your computer and use it in GitHub Desktop.
Save gpfiel/9258291 to your computer and use it in GitHub Desktop.
HandleSoap
public function handleSOAP() {
$soap = new \Zend\Soap\Server($this->_WSDL_URI);
/**
* Criamos um novo diretorio chamado Service e criamos a class ExtranetService
* depois setamos a classe no autodiscover no metodo setClass
*/
$soap->setClass('\WebService\Service\ExtranetService');
$soap->setObject(new ExtranetService($this->getServiceLocator()->get('Doctrine\ORM\EntityManager')));
// Leva pedido do fluxo de entrada padrão
$soap->handle();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment