Skip to content

Implementação da consulta de CTe pela Chave #401

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

Merged

Conversation

lpostingher
Copy link
Contributor

Implementação da consulta de CTe pela Chave com base na documentação fornecida no Portal do Conhecimento de Transporte Eletronico.

Não consegui fazer a validação da chamada, pois estou sem certificado para realizar o teste.

Manual de Orientação do Contribuinte:
https://www.cte.fazenda.gov.br/portal/exibirArquivo.aspx?conteudo=0eu1YksSGXM=

Lista de webservices:
https://www.cte.fazenda.gov.br/portal/webServices.aspx?tipoConteudo=wpdBtfbTMrw=

@leogregianin leogregianin requested a review from Copilot April 4, 2025 21:27
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

Comments suppressed due to low confidence (2)

pynfe/processamento/comunicacao.py:1253

  • The XML root element 'consSitCTe' does not clearly match the SOAP operation name 'cteConsultaCT'. Verify that this structure aligns with the web service documentation.
raiz = etree.Element("consSitCTe", versao=self._versao, xmlns=NAMESPACE_CTE)

pynfe/utils/webservices.py:555

  • Confirm that the 'CONSULTA' URL value is correctly specified without the protocol, assuming it is concatenated with the 'HTTPS' prefix elsewhere. If a full URL is expected by the service, consider including 'https://'.
"CONSULTA": "sefaz.mt.gov.br/ctews2/services/CTeConsultaV4?wsdl",

@juniortada juniortada requested a review from leogregianin April 7, 2025 12:12
Copy link
Collaborator

@felps-dev felps-dev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Muito obrigado pela contribuição!
Consegue colocar um teste unitário para a nova função?

@lpostingher
Copy link
Contributor Author

@felps-dev acabei esquecendo deste detalhe, fiz a inclusão dos testes.

@lpostingher lpostingher requested a review from felps-dev April 7, 2025 22:14
@juniortada juniortada merged commit 1316958 into TadaSoftware:main Apr 8, 2025
6 checks passed
@felps-dev felps-dev mentioned this pull request May 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants