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; } - + }