Skip to content

Commit b175fea

Browse files
committed
Corrigido soap action dos web services
Adicionado verificação de peer ssl Utilizando web services do nfe-php para testes Removido wsdl antigos
1 parent 52c7fe0 commit b175fea

17 files changed

+666
-1960
lines changed

api/NFe/Common/CurlSoap.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class CurlSoap extends Curl
3636
{
3737

3838
const ENVELOPE = <<<XML
39-
<?xml version="1.0" encoding="utf-8"?>
39+
<?xml version="1.0" encoding="UTF-8"?>
4040
<soap12:Envelope
4141
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4242
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
@@ -60,8 +60,6 @@ public function __construct($base_url = null)
6060
{
6161
parent::__construct($base_url);
6262
$this->setHeader('Content-Type', 'application/soap+xml; charset=utf-8');
63-
$this->setOpt(CURLOPT_SSL_VERIFYPEER, false);
64-
$this->setOpt(CURLOPT_SSLVERSION, 1);
6563
$this->setConnectTimeout(4);
6664
$this->setTimeout(6);
6765
$this->setXmlDecoder(function ($response) {

0 commit comments

Comments
 (0)