-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: adicionar estrutura base para funcionamento do composer no módulo #583
base: release/3.7.0
Are you sure you want to change the base?
feat: adicionar estrutura base para funcionamento do composer no módulo #583
Conversation
…os pelo o composer no módulo
…mites, cienciaRecusa, enviarReciboDeTramite, receberReciboDeTramite}
src/rn/ProcessoEletronicoRN.php
Outdated
$naoRespEstruturaOrg = 'Transa��o n�o autorizada, pois o sistema n�o � respons�vel pela estrutura organizacional remetente'; | ||
if (InfraString::formatarJavaScript(utf8_decode($e->faultstring)) == $naoRespEstruturaOrg) { | ||
$strMensagem = "Por favor, observe o seguinte procedimento para realizar o mapeamento adequado: Acesse a funcionalidade Administra��o, em seguida selecione Tramita GOV.BR e, por fim, proceda ao mapeamento utilizando somente as unidades pertinentes ao seu �rg�o/entidade na funcionalidade Mapeamento de Unidades. Certifique-se de seguir esse processo para garantir a correta execu��o do mapeamento."; | ||
} else { | ||
$strMensagem = str_replace(array("\n", "\r"), ' ', InfraString::formatarJavaScript(utf8_decode($e->faultstring))); | ||
} | ||
if ($e instanceof \SoapFault && !empty($e->detail->interoperabilidadeException->codigoErro) && $e->detail->interoperabilidadeException->codigoErro == '0005') { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
O código do erro continua nesse caminho?
fff92c2
to
5ed70ca
Compare
src/rn/ProcessoEletronicoRN.php
Outdated
'protocolo' => $parStrProtocolo, | ||
]); | ||
|
||
// if (!is_null($parObjParteComponente)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Retirar código comentado
src/rn/ProcessoEletronicoRN.php
Outdated
@@ -1081,8 +868,63 @@ private function atribuirInformacoesAssunto($objCabecalho, $dblIdProcedimento) | |||
|
|||
} | |||
|
|||
// public function enviarComponenteDigital($parametros) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Retirar código comentado
src/rn/ProcessoEletronicoRN.php
Outdated
$result = $this->tentarNovamenteSobErroHTTP(function($objPenWs) use ($parametros) { | ||
return $objPenWs->consultarRepositoriosDeEstruturas($parametros); | ||
}); | ||
// private function getObjPenWs() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Retirar código comentado
src/rn/ProcessoEletronicoRN.php
Outdated
$this->objPenWs = new BeSimple\SoapClient\SoapClient($strWSDL, $this->options); | ||
|
||
// TODO: lembrar de pegar url dinamicamente quando SOAP for removido | ||
$this->strBaseUri = 'https://homolog.api.processoeletronico.gov.br'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deveria pegar do arquivo de configuração do módulo.
src/rn/ProcessoEletronicoRN.php
Outdated
) | ||
); | ||
|
||
$strWSDL = $this->strEnderecoWebService . '/interoperabilidade/soap/v3/?wsdl'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Não entendi. Vai continuar usando o SOAP?
src/rn/ProcessoEletronicoRN.php
Outdated
'protocolo' => $parStrProtocolo, | ||
]; | ||
|
||
// if (!is_null($parObjParteComponente)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Retirar código comentado.
src/rn/ProcessoEletronicoRN.php
Outdated
$envioDeReciboDeTramite = [ | ||
'dataDeRecebimento' => $parDthRecebimento, | ||
'hashDaAssinatura' => $strHashDaAssinaturaBase64, | ||
// 'hashDaAssinaturaAsBytes' => $strHashDaAssinaturaBase64 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Retirar código comentado.
@@ -36,9 +36,9 @@ public function getArrConfiguracoes() | |||
"PEN" => array( | |||
// Endere�o do Web Service principal de integra��o com o Barramento de Servi�os do PEN | |||
// Os endere�os dispon�veis s�o os seguintes (verifique se houve atualiza��es durante o procedimento de instala��o): | |||
// - Homologa��o: https://homolog.api.processoeletronico.gov.br/interoperabilidade/soap/v3/ | |||
// - Homologa��o: https://homolog.api.processoeletronico.gov.br | |||
// - Produ��o: https://api.conectagov.processoeletronico.gov.br/interoperabilidade/soap/v3/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Atualizar o exemplo do caminho do REST para produção.
@@ -36,9 +36,9 @@ public function getArrConfiguracoes() | |||
"PEN" => array( | |||
// Endere�o do Web Service principal de integra��o com o Barramento de Servi�os do PEN | |||
// Os endere�os dispon�veis s�o os seguintes (verifique se houve atualiza��es durante o procedimento de instala��o): | |||
// - Homologa��o: https://homolog.api.processoeletronico.gov.br/interoperabilidade/soap/v3/ | |||
// - Homologa��o: https://homolog.api.processoeletronico.gov.br | |||
// - Produ��o: https://api.conectagov.processoeletronico.gov.br/interoperabilidade/soap/v3/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Atualizar o exemplo do caminho do REST para produção.
@@ -36,9 +36,9 @@ public function getArrConfiguracoes() | |||
"PEN" => array( | |||
// Endere�o do Web Service principal de integra��o com o Barramento de Servi�os do PEN | |||
// Os endere�os dispon�veis s�o os seguintes (verifique se houve atualiza��es durante o procedimento de instala��o): | |||
// - Homologa��o: https://homolog.api.processoeletronico.gov.br/interoperabilidade/soap/v3/ | |||
// - Homologa��o: https://homolog.api.processoeletronico.gov.br/interoperabilidade/rest/v3/ | |||
// - Produ��o: https://api.conectagov.processoeletronico.gov.br/interoperabilidade/soap/v3/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Atualizar o exemplo do caminho do REST para produção.
src/rn/ExpedirProcedimentoRN.php
Outdated
if($documentoDTO->getStrStaNivelAcessoLocalProtocolo() == ProtocoloRN::$NA_RESTRITO){ | ||
$documento->hipoteseLegal = new stdClass(); | ||
$documento->hipoteseLegal->identificacao = $objPenRelHipoteseLegalRN->getIdHipoteseLegalPEN($documentoDTO->getNumIdHipoteseLegalProtocolo()); | ||
$documento['hipoteseLegal'] = []; // Inicializando a chave 'hipoteseLegal' como um array |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
O correto não seria manter a atribuição como "array()"?
src/rn/ExpedirProcedimentoRN.php
Outdated
$documento->produtor = new stdClass(); | ||
$documento['dataHoraDeProducao'] = $this->objProcessoEletronicoRN->converterDataWebService($documentoDTO->getDtaGeracaoProtocolo()); | ||
$documento['dataHoraDeRegistro'] = $this->objProcessoEletronicoRN->converterDataWebService($documentoDTO->getDtaGeracaoProtocolo()); | ||
$documento['produtor'] = []; // Inicializando a chave 'produtor' como um array |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
O correto não seria manter a atribuição como "array()"?
src/rn/ProcessoEletronicoRN.php
Outdated
$arrEstruturasCadastradas[] = $result->estruturasEncontradas->estrutura; | ||
public function listarRepositoriosDeEstruturas() | ||
{ | ||
$arrObjRepositorioDTO = []; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
O correto não seria manter a atribuição como "array()"?
tests_sei41/funcional/composer.json
Outdated
"Tests\\": "sei/" | ||
} | ||
}, | ||
|
||
"require-dev": { | ||
"phpunit/phpunit": "8.*", | ||
"phpunit/php-code-coverage": "*", | ||
"phpunit/phpunit-selenium": "*", | ||
"besimple/soap": "*", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Retirar do composer.
tests_super/funcional/composer.json
Outdated
@@ -24,6 +24,7 @@ | |||
"phpunit/phpunit-selenium": "*", | |||
"besimple/soap": "*", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Retirar do composer
…nto na ultima versão estável da 3.7.0
164ff3a
to
94b91c9
Compare
Closes #626
Closes #601
Closes #371
Closes #579