Created
December 19, 2013 18:45
-
-
Save gpfiel/8044150 to your computer and use it in GitHub Desktop.
Soap message
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
<?php | |
namespace Application\Controller; | |
use Zend\View\Model\ViewModel; | |
use Zend\Mvc\Controller\AbstractActionController; | |
class ClienteServiceController extends AbstractActionController | |
{ | |
// Armazena na variável o endereço do webserver no servidor | |
private $_WSDL_URI = "http://sjo-web-09:8088/?wsdl"; | |
public function olaAction() { | |
// Instanciando o Zend Soap Cliente | |
$client = new \Zend\Soap\Client($this->_WSDL_URI); | |
return new ViewModel(array( | |
'ola' => $client->PostMessage("asddsa", "1","09565665") | |
)); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment