Skip to content

Commit

Permalink
Corrigido soap action dos web services
Browse files Browse the repository at this point in the history
Adicionado verificação de peer ssl
Utilizando web services do nfe-php para testes
Removido wsdl antigos
  • Loading branch information
mazinsw committed Jun 20, 2018
1 parent 52c7fe0 commit b175fea
Show file tree
Hide file tree
Showing 17 changed files with 666 additions and 1,960 deletions.
4 changes: 1 addition & 3 deletions api/NFe/Common/CurlSoap.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class CurlSoap extends Curl
{

const ENVELOPE = <<<XML
<?xml version="1.0" encoding="utf-8"?>
<?xml version="1.0" encoding="UTF-8"?>
<soap12:Envelope
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
Expand All @@ -60,8 +60,6 @@ public function __construct($base_url = null)
{
parent::__construct($base_url);
$this->setHeader('Content-Type', 'application/soap+xml; charset=utf-8');
$this->setOpt(CURLOPT_SSL_VERIFYPEER, false);
$this->setOpt(CURLOPT_SSLVERSION, 1);
$this->setConnectTimeout(4);
$this->setTimeout(6);
$this->setXmlDecoder(function ($response) {
Expand Down
Loading

0 comments on commit b175fea

Please sign in to comment.