Skip to content

Instantly share code, notes, and snippets.

@gpfiel
Created December 19, 2013 18:45
Show Gist options
  • Save gpfiel/8044150 to your computer and use it in GitHub Desktop.
Save gpfiel/8044150 to your computer and use it in GitHub Desktop.
Soap message
<?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