Skip to content

Commit

Permalink
GNRE
Browse files Browse the repository at this point in the history
  • Loading branch information
luizkim committed Nov 27, 2023
1 parent a78bc11 commit 52ce245
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 32 deletions.
6 changes: 3 additions & 3 deletions lib/Sped/Gnre/Sefaz/ConfigUf.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ class ConfigUf extends ConsultaConfigUf
public function getHeaderSoap()
{
$action = $this->ambienteDeTeste ?
'https://www.testegnre.pe.gov.br/webservice/GnreConfigUF' :
'https://www.gnre.pe.gov.br/webservice/GnreConfigUF';
'http://www.testegnre.pe.gov.br/webservice/GnreConfigUF' :
'http://www.gnre.pe.gov.br/webservice/GnreConfigUF';

return array(
'Content-Type: application/soap+xml;charset=utf-8;action="' . $action . '"',
Expand All @@ -57,7 +57,7 @@ public function getHeaderSoap()
public function soapAction()
{
return $this->ambienteDeTeste ?
'https://www.testegnre.pe.gov.br/gnreWS/services/GnreConfigUF' :
'http://www.testegnre.pe.gov.br/gnreWS/services/GnreConfigUF' :
'https://www.gnre.pe.gov.br/gnreWS/services/GnreConfigUF';
}

Expand Down
10 changes: 5 additions & 5 deletions lib/Sped/Gnre/Sefaz/Consulta.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ class Consulta extends ConsultaGnre
public function getHeaderSoap()
{
$action = $this->ambienteDeTeste ?
'https://www.testegnre.pe.gov.br/webservice/GnreResultadoLote' :
'https://www.gnre.pe.gov.br/webservice/GnreResultadoLote';
'http://www.testegnre.pe.gov.br/webservice/GnreResultadoLote' :
'http://www.gnre.pe.gov.br/webservice/GnreResultadoLote';

return array(
'Content-Type: application/soap+xml;charset=utf-8;action="' . $action . '"',
Expand All @@ -57,7 +57,7 @@ public function getHeaderSoap()
public function soapAction()
{
return $this->ambienteDeTeste ?
'https://www.testegnre.pe.gov.br/gnreWS/services/GnreResultadoLote' :
'http://www.testegnre.pe.gov.br/gnreWS/services/GnreResultadoLote' :
'https://www.gnre.pe.gov.br/gnreWS/services/GnreResultadoLote';
}

Expand Down Expand Up @@ -105,8 +105,8 @@ public function getSoapEnvelop($gnre, $consulta)
$gnre->appendChild($soapEnv);

$action = $this->ambienteDeTeste ?
'https://www.testegnre.pe.gov.br/webservice/GnreResultadoLote' :
'https://www.gnre.pe.gov.br/webservice/GnreResultadoLote';
'http://www.testegnre.pe.gov.br/webservice/GnreResultadoLote' :
'http://www.gnre.pe.gov.br/webservice/GnreResultadoLote';

$gnreDadosMsg = $gnre->createElement('gnreDadosMsg');
$gnreDadosMsg->setAttribute('xmlns', $action);
Expand Down
10 changes: 5 additions & 5 deletions lib/Sped/Gnre/Sefaz/Lote.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ public function setEstadoFactory(EstadoFactory $estadoFactory)
public function getHeaderSoap()
{
$action = $this->ambienteDeTeste ?
'https://www.testegnre.pe.gov.br/webservice/GnreLoteRecepcao' :
'https://www.gnre.pe.gov.br/webservice/GnreLoteRecepcao';
'http://www.testegnre.pe.gov.br/webservice/GnreLoteRecepcao' :
'http://www.gnre.pe.gov.br/webservice/GnreLoteRecepcao';

return array(
'Content-Type: application/soap+xml;charset=utf-8;action="' . $action . '"',
Expand All @@ -86,7 +86,7 @@ public function getHeaderSoap()
public function soapAction()
{
return $this->ambienteDeTeste ?
'https://www.testegnre.pe.gov.br/gnreWS/services/GnreLoteRecepcao' :
'http://www.testegnre.pe.gov.br/gnreWS/services/GnreLoteRecepcao' :
'https://www.gnre.pe.gov.br/gnreWS/services/GnreLoteRecepcao';
}

Expand Down Expand Up @@ -265,8 +265,8 @@ public function getSoapEnvelop($gnre, $loteGnre)
$gnre->appendChild($soapEnv);

$action = $this->ambienteDeTeste ?
'https://www.testegnre.pe.gov.br/webservice/GnreLoteRecepcao' :
'https://www.gnre.pe.gov.br/webservice/GnreLoteRecepcao';
'http://www.testegnre.pe.gov.br/webservice/GnreLoteRecepcao' :
'http://www.gnre.pe.gov.br/webservice/GnreLoteRecepcao';

$gnreDadosMsg = $gnre->createElement('gnreDadosMsg');
$gnreDadosMsg->setAttribute('xmlns', $action);
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 @@ -51,8 +51,8 @@ public function getSoapEnvelop($gnre, $loteGnre)
$gnre->appendChild($soapEnv);

$action = $this->ambienteDeTesteV2 ?
'https://www.testegnre.pe.gov.br/webservice/GnreLoteRecepcao' :
'https://www.gnre.pe.gov.br/webservice/GnreLoteRecepcao';
'http://www.testegnre.pe.gov.br/webservice/GnreLoteRecepcao' :
'http://www.gnre.pe.gov.br/webservice/GnreLoteRecepcao';

$gnreDadosMsg = $gnre->createElement('gnreDadosMsg');
$gnreDadosMsg->setAttribute('xmlns', $action);
Expand Down
6 changes: 3 additions & 3 deletions testes/Sefaz/ConfigUfTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function testDeveRetornarOsCabecalhosParaArequisicaoSoap()
$consulta = new \Sped\Gnre\Sefaz\ConfigUf();
$headersArray = $consulta->getHeaderSoap();

$header = 'Content-Type: application/soap+xml;charset=utf-8;action="https://www.gnre.pe.gov.br/webservice/GnreConfigUF"';
$header = 'Content-Type: application/soap+xml;charset=utf-8;action="http://www.gnre.pe.gov.br/webservice/GnreConfigUF"';
$this->assertEquals($header, $headersArray[0]);
$this->assertEquals('SOAPAction: consultar', $headersArray[1]);
}
Expand All @@ -27,7 +27,7 @@ public function testDeveRetornarOsCabecalhosParaArequisicaoSoapAoWebserviceDeTes

$headersArray = $consulta->getHeaderSoap();

$header = 'Content-Type: application/soap+xml;charset=utf-8;action="https://www.testegnre.pe.gov.br/webservice/GnreConfigUF"';
$header = 'Content-Type: application/soap+xml;charset=utf-8;action="http://www.testegnre.pe.gov.br/webservice/GnreConfigUF"';
$this->assertEquals($header, $headersArray[0]);
$this->assertEquals('SOAPAction: consultar', $headersArray[1]);
}
Expand Down Expand Up @@ -63,6 +63,6 @@ public function testDeveRetornarAactionAserExecutadaNoWebServiceDeTestes()
$consulta = new \Sped\Gnre\Sefaz\ConfigUf();
$consulta->utilizarAmbienteDeTeste(true);

$this->assertEquals($consulta->soapAction(), 'https://www.testegnre.pe.gov.br/gnreWS/services/GnreConfigUF');
$this->assertEquals($consulta->soapAction(), 'http://www.testegnre.pe.gov.br/gnreWS/services/GnreConfigUF');
}
}
6 changes: 3 additions & 3 deletions testes/Sefaz/ConsultaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public function testDeveRetornarOsCabecalhosParaArequisicaoSoap()
$consulta = new \Sped\Gnre\Sefaz\Consulta();
$headersArray = $consulta->getHeaderSoap();

$header = 'Content-Type: application/soap+xml;charset=utf-8;action="https://www.gnre.pe.gov.br/webservice/GnreResultadoLote"';
$header = 'Content-Type: application/soap+xml;charset=utf-8;action="http://www.gnre.pe.gov.br/webservice/GnreResultadoLote"';
$this->assertEquals($header, $headersArray[0]);
$this->assertEquals('SOAPAction: consultar', $headersArray[1]);
}
Expand All @@ -27,7 +27,7 @@ public function testDeveRetornarOsCabecalhosParaArequisicaoSoapAoWebserviceDeTes

$headersArray = $consulta->getHeaderSoap();

$header = 'Content-Type: application/soap+xml;charset=utf-8;action="https://www.testegnre.pe.gov.br/webservice/GnreResultadoLote"';
$header = 'Content-Type: application/soap+xml;charset=utf-8;action="http://www.testegnre.pe.gov.br/webservice/GnreResultadoLote"';
$this->assertEquals($header, $headersArray[0]);
$this->assertEquals('SOAPAction: consultar', $headersArray[1]);
}
Expand Down Expand Up @@ -62,7 +62,7 @@ public function testDeveRetornarAactionAserExecutadaNoWebServiceDeTestes()
$consulta = new \Sped\Gnre\Sefaz\Consulta();
$consulta->utilizarAmbienteDeTeste(true);

$action = 'https://www.testegnre.pe.gov.br/gnreWS/services/GnreResultadoLote';
$action = 'http://www.testegnre.pe.gov.br/gnreWS/services/GnreResultadoLote';
$this->assertEquals($consulta->soapAction(), $action);
}
}
6 changes: 3 additions & 3 deletions testes/Sefaz/LoteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function testDeveRetornarOsCabecalhosParaArequisicaoSoap()
$lote = new Lote();
$headersArray = $lote->getHeaderSoap();

$header = 'Content-Type: application/soap+xml;charset=utf-8;action="https://www.gnre.pe.gov.br/webservice/GnreLoteRecepcao"';
$header = 'Content-Type: application/soap+xml;charset=utf-8;action="http://www.gnre.pe.gov.br/webservice/GnreLoteRecepcao"';
$this->assertEquals($header, $headersArray[0]);
$this->assertEquals('SOAPAction: processar', $headersArray[1]);
}
Expand Down Expand Up @@ -313,7 +313,7 @@ public function testDeveUtilizarOAmbienteDeTestesAoEnviarUmLoteParaOwebService()
{
$lote = new Lote();
$lote->utilizarAmbienteDeTeste(true);
$this->assertEquals('https://www.testegnre.pe.gov.br/gnreWS/services/GnreLoteRecepcao', $lote->soapAction());
$this->assertEquals('http://www.testegnre.pe.gov.br/gnreWS/services/GnreLoteRecepcao', $lote->soapAction());
}

public function testDeveRetornarOsCabecalhosParaArequisicaoSoapAoWebServiceDeteste()
Expand All @@ -323,7 +323,7 @@ public function testDeveRetornarOsCabecalhosParaArequisicaoSoapAoWebServiceDetes

$headersArray = $lote->getHeaderSoap();

$header = 'Content-Type: application/soap+xml;charset=utf-8;action="https://www.testegnre.pe.gov.br/webservice/GnreLoteRecepcao"';
$header = 'Content-Type: application/soap+xml;charset=utf-8;action="http://www.testegnre.pe.gov.br/webservice/GnreLoteRecepcao"';
$this->assertEquals($header, $headersArray[0]);
$this->assertEquals('SOAPAction: processar', $headersArray[1]);
}
Expand Down
8 changes: 4 additions & 4 deletions wsdl/GnreLoteResultado.wsdl
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="https://www.gnre.pe.gov.br/webservice/GnreResultadoLote" xmlns:s="http://www.w3.org/2001/XMLSchema"
<wsdl:definitions targetNamespace="http://www.gnre.pe.gov.br/webservice/GnreResultadoLote" xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:tns="https://www.gnre.pe.gov.br/webservice/GnreResultadoLote" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
xmlns:tns="http://www.gnre.pe.gov.br/webservice/GnreResultadoLote" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="https://www.gnre.pe.gov.br/webservice/GnreResultadoLote">
<s:schema elementFormDefault="qualified" targetNamespace="http://www.gnre.pe.gov.br/webservice/GnreResultadoLote">
<s:element name="gnreDadosMsg">
<s:complexType mixed="true">
<s:sequence>
Expand Down Expand Up @@ -47,7 +47,7 @@
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="consultar">
<soap12:operation
soapAction="https://www.gnre.pe.gov.br/webservice/GnreResultadoLote/consultar"
soapAction="http://www.gnre.pe.gov.br/webservice/GnreResultadoLote/consultar"
style="document"/>
<wsdl:input>
<soap12:body use="literal"/>
Expand Down
8 changes: 4 additions & 4 deletions wsdl/GnreRecepcaoLote.wsdl
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions targetNamespace="https://www.gnre.pe.gov.br/webservice/GnreLoteRecepcao" xmlns:s="http://www.w3.org/2001/XMLSchema"
<wsdl:definitions targetNamespace="http://www.gnre.pe.gov.br/webservice/GnreLoteRecepcao" xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soap12="http://schemas.xmlsoap.org/wsdl/soap12/"
xmlns:tns="https://www.gnre.pe.gov.br/webservice/GnreLoteRecepcao" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
xmlns:tns="http://www.gnre.pe.gov.br/webservice/GnreLoteRecepcao" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/">
<wsdl:types>
<s:schema elementFormDefault="qualified" targetNamespace="https://www.gnre.pe.gov.br/webservice/GnreLoteRecepcao">
<s:schema elementFormDefault="qualified" targetNamespace="http://www.gnre.pe.gov.br/webservice/GnreLoteRecepcao">
<s:element name="gnreDadosMsg">
<s:complexType mixed="true">
<s:sequence>
Expand Down Expand Up @@ -45,7 +45,7 @@
<wsdl:binding name="GnreLoteRecepcao" type="tns:GnreLoteRecepcaoSoap">
<soap12:binding transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="processar">
<soap12:operation soapAction="https://www.gnre.pe.gov.br/webservice/GnreLoteRecepcao/processar"
<soap12:operation soapAction="http://www.gnre.pe.gov.br/webservice/GnreLoteRecepcao/processar"
style="document"/>
<wsdl:input>
<soap12:body use="literal"/>
Expand Down

0 comments on commit 52ce245

Please sign in to comment.