Created
February 27, 2014 20:02
-
-
Save gpfiel/9258291 to your computer and use it in GitHub Desktop.
HandleSoap
This file contains hidden or 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
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