Skip to content

Commit

Permalink
HTTP
Browse files Browse the repository at this point in the history
  • Loading branch information
luizkim committed Nov 22, 2023
1 parent e2780b3 commit a78bc11
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion exemplos/xml/resultado-consulta-gnre.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<soapenv:Envelope xmlns:soapenv="http://www.w3.org/2003/05/soap-envelope" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<gnreRespostaMsg xmlns="http://www.gnre.pe.gov.br/webservice/GnreResultadoLote">
<ns1:TResultLote_GNRE xmlns="http://www.gnre.pe.gov.br" xmlns:ns1="https://www.gnre.pe.gov.br">
<ns1:TResultLote_GNRE xmlns="http://www.gnre.pe.gov.br" xmlns:ns1="http://www.gnre.pe.gov.br">
<ns1:ambiente>1</ns1:ambiente>
<ns1:numeroRecibo>0000000000</ns1:numeroRecibo>
<ns1:situacaoProcess>
Expand Down
2 changes: 1 addition & 1 deletion lib/Sped/Gnre/Sefaz/ConfigUf.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function getSoapEnvelop($gnre, $consulta)
{
$soapEnv = $gnre->createElement('soap12:Envelope');
$soapEnv->setAttribute('xmlns:soap12', 'http://www.w3.org/2003/05/soap-envelope');
$soapEnv->setAttribute('xmlns:gnr', 'https://www.gnre.pe.gov.br/webservice/GnreConfigUF');
$soapEnv->setAttribute('xmlns:gnr', 'http://www.gnre.pe.gov.br/webservice/GnreConfigUF');

$gnreCabecalhoSoap = $gnre->createElement('gnr:gnreCabecMsg');
$gnreCabecalhoSoap->appendChild($gnre->createElement('gnr:versaoDados', '1.00'));
Expand Down
2 changes: 1 addition & 1 deletion lib/Sped/Gnre/Sefaz/Consulta.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function getSoapEnvelop($gnre, $consulta)
$soapEnv->setAttribute('xmlns:soap12', 'http://www.w3.org/2003/05/soap-envelope');

$gnreCabecalhoSoap = $gnre->createElement('gnreCabecMsg');
$gnreCabecalhoSoap->setAttribute('xmlns', 'https://www.gnre.pe.gov.br/wsdl/consultar');
$gnreCabecalhoSoap->setAttribute('xmlns', 'http://www.gnre.pe.gov.br/wsdl/consultar');
$gnreCabecalhoSoap->appendChild($gnre->createElement('versaoDados', '1.00'));

$soapHeader = $gnre->createElement('soap12:Header');
Expand Down
4 changes: 2 additions & 2 deletions lib/Sped/Gnre/Sefaz/Lote.php
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function toXml()

$loteGnre = $gnre->createElement('TLote_GNRE');
$loteXmlns = $gnre->createAttribute('xmlns');
$loteXmlns->value = 'https://www.gnre.pe.gov.br';
$loteXmlns->value = 'http://www.gnre.pe.gov.br';
$loteGnre->appendChild($loteXmlns);
$guia = $gnre->createElement('guias');

Expand Down Expand Up @@ -255,7 +255,7 @@ public function getSoapEnvelop($gnre, $loteGnre)
$soapEnv->setAttribute('xmlns:soap12', 'http://www.w3.org/2003/05/soap-envelope');

$gnreCabecalhoSoap = $gnre->createElement('gnreCabecMsg');
$gnreCabecalhoSoap->setAttribute('xmlns', 'https://www.gnre.pe.gov.br/wsdl/processar');
$gnreCabecalhoSoap->setAttribute('xmlns', 'http://www.gnre.pe.gov.br/wsdl/processar');
$gnreCabecalhoSoap->appendChild($gnre->createElement('versaoDados', '1.00'));

$soapHeader = $gnre->createElement('soap12:Header');
Expand Down
4 changes: 2 additions & 2 deletions lib/Sped/Gnre/Sefaz/LoteV2.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function getSoapEnvelop($gnre, $loteGnre)
$soapEnv->setAttribute('xmlns:soap12', 'http://www.w3.org/2003/05/soap-envelope');

$gnreCabecalhoSoap = $gnre->createElement('gnreCabecMsg');
$gnreCabecalhoSoap->setAttribute('xmlns', 'https://www.gnre.pe.gov.br/wsdl/processar');
$gnreCabecalhoSoap->setAttribute('xmlns', 'http://www.gnre.pe.gov.br/wsdl/processar');
$gnreCabecalhoSoap->appendChild($gnre->createElement('versaoDados', '2.00'));

$soapHeader = $gnre->createElement('soap12:Header');
Expand Down Expand Up @@ -73,7 +73,7 @@ public function toXml() {
$loteGnre = $gnre->createElement('TLote_GNRE');

$loteXmlns = $gnre->createAttribute('xmlns');
$loteXmlns->value = 'https://www.gnre.pe.gov.br';
$loteXmlns->value = 'http://www.gnre.pe.gov.br';

$loteVersao = $gnre->createAttribute('versao');
$loteVersao->value = '2.00';
Expand Down

0 comments on commit a78bc11

Please sign in to comment.