From c209e4232a993c584a22764780353dc659c68bfa Mon Sep 17 00:00:00 2001 From: Julia Date: Thu, 21 Nov 2024 08:39:12 -0400 Subject: [PATCH] =?UTF-8?q?Altera=C3=A7=C3=B5es=20no=20envelope=20SOAP?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/Sped/Gnre/Sefaz/LoteV2.php | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) mode change 100644 => 100755 lib/Sped/Gnre/Sefaz/LoteV2.php diff --git a/lib/Sped/Gnre/Sefaz/LoteV2.php b/lib/Sped/Gnre/Sefaz/LoteV2.php old mode 100644 new mode 100755 index a4fbf2a..fc3a19a --- a/lib/Sped/Gnre/Sefaz/LoteV2.php +++ b/lib/Sped/Gnre/Sefaz/LoteV2.php @@ -39,10 +39,12 @@ public function getSoapEnvelop($gnre, $loteGnre) $soapEnv->setAttribute('xmlns:xsi', 'http://www.w3.org/2001/XMLSchema-instance'); $soapEnv->setAttribute('xmlns:xsd', 'http://www.w3.org/2001/XMLSchema'); $soapEnv->setAttribute('xmlns:soap12', 'http://www.w3.org/2003/05/soap-envelope'); + $soapEnv->setAttribute('xmlns:gnr', 'http://www.gnre.pe.gov.br/webservice/GnreLoteRecepcao'); - $gnreCabecalhoSoap = $gnre->createElement('gnreCabecMsg'); + + $gnreCabecalhoSoap = $gnre->createElement('gnr:gnreCabecMsg'); $gnreCabecalhoSoap->setAttribute('xmlns', 'http://www.gnre.pe.gov.br/wsdl/processar'); - $gnreCabecalhoSoap->appendChild($gnre->createElement('versaoDados', '2.00')); + $gnreCabecalhoSoap->appendChild($gnre->createElement('gnr:versaoDados', '2.00')); $soapHeader = $gnre->createElement('soap12:Header'); $soapHeader->appendChild($gnreCabecalhoSoap); @@ -54,7 +56,7 @@ public function getSoapEnvelop($gnre, $loteGnre) 'http://www.testegnre.pe.gov.br/webservice/GnreLoteRecepcao' : 'http://www.gnre.pe.gov.br/webservice/GnreLoteRecepcao'; - $gnreDadosMsg = $gnre->createElement('gnreDadosMsg'); + $gnreDadosMsg = $gnre->createElement('gnr:gnreDadosMsg'); $gnreDadosMsg->setAttribute('xmlns', $action); $gnreDadosMsg->appendChild($loteGnre); @@ -368,5 +370,5 @@ public function getNumDoc($uf) { } return $doc; } - + }