Ir para conteúdo
  • Cadastre-se

dev botao

Create new service to know connection status


Ver Solução Respondido por José M. S. Junior,
  • Este tópico foi criado há 1984 dias atrás.
  • Talvez seja melhor você criar um NOVO TÓPICO do que postar uma resposta aqui.

Recommended Posts

  • Administradores

Good afternoon.

Please give us a some details... I didn't understand what you need... If you are using ACBr Monitor Plus, it always has to be up in order to receive any command.

Tks

  • Curtir 1
Consultora SAC ACBr

Juliana Tamizou

Gerente de Projetos ACBr / Diretora de Marketing AFRAC
Ajude o Projeto ACBr crescer - Seja Pro

Projeto ACBr     Telefone:(15) 2105-0750 WhatsApp(15)99790-2976.  Discord

Projeto ACBr - A maior comunidade Open Source de Automação Comercial do Brasil


Participe de nosso canal no Discord e fique ainda mais próximo da Comunidade !!

Link para o comentário
Compartilhar em outros sites

  • Moderadores

Hi Antonio

Create a routine in your application by calling the method (NFe.StatusService). Validate the result of the "cStat" tag.

Here is an example of the method:

https://acbr.sourceforge.io/ACBrMonitor/NFEStatusServico.html

  • Curtir 1
Consultor SAC ACBr

José Junior
Ajude o Projeto ACBr crescer - Assine o SAC

Projeto ACBr     Telefone:(15) 2105-0750 WhatsApp(15)99790-2976.

Link para o comentário
Compartilhar em outros sites

  • Moderadores

ACBrMonitor does not do any tasks alone.

In the same way that your system sends the NFe transmission command, your system must also send the command to see if the interface (SEFAZ) is in operation.
The correct procedure is to consult the Service (NFe.StatusServico), before sending the NFe. Your system needs to read the ACBrMonitor return and perform the procedure you feel is necessary.

ACBrMonitor works as an integrator! Get a command, execute and return a response...
 

  • Curtir 1
Consultor SAC ACBr

José Junior
Ajude o Projeto ACBr crescer - Assine o SAC

Projeto ACBr     Telefone:(15) 2105-0750 WhatsApp(15)99790-2976.

Link para o comentário
Compartilhar em outros sites

  • Consultores
5 horas atrás, Antonio D. Méndez disse:

I don't understand when you talk about " in your application ".

I'm talking about create a service in the windows or linux server that notify me when the interface is down.

Regards.

How are you currently using ACBr? Also, are you using Delphi or Lazarus?

  • Curtir 1

[]'s

Consultor SAC ACBr

Elton
Profissionalize o ACBr na sua empresa, conheça o ACBr Pro.

Projeto ACBr     Telefone:(15) 2105-0750 WhatsApp(15)99790-2976.

Um engenheiro de Controle de Qualidade(QA) entra num bar. Pede uma cerveja. Pede zero cervejas.
Pede 99999999 cervejas. Pede -1 cervejas. Pede um jacaré. Pede asdfdhklçkh.
Link para o comentário
Compartilhar em outros sites

  • Moderadores
  • Solution

Hi,

OK, just as SAP writes the NFe file and reads the return file in another folder, this can also be done with the "NFe.StatusService" command.

In the ACBrMonitor manual there are all the service methods available by SEFAZ :

https://acbr.sourceforge.io/ACBrMonitor/Comandos.html

So, if SAP integrates with ACBrMonitor, SAP will need to implement it by reading the return and validating the error code. This way, you can identify the service status of SEFAZ ...

  • Curtir 1
Consultor SAC ACBr

José Junior
Ajude o Projeto ACBr crescer - Assine o SAC

Projeto ACBr     Telefone:(15) 2105-0750 WhatsApp(15)99790-2976.

Link para o comentário
Compartilhar em outros sites

  • Moderadores


Another possibility would be to create a system running as a service, which communicates with ACBrMonitor. However, this is a task that should be a responsibility of the software that currently communicates with ACBrMonitor.

Editado por EMBarbosa
  • Curtir 1
Consultor SAC ACBr

José Junior
Ajude o Projeto ACBr crescer - Assine o SAC

Projeto ACBr     Telefone:(15) 2105-0750 WhatsApp(15)99790-2976.

Link para o comentário
Compartilhar em outros sites

  • Este tópico foi criado há 1984 dias atrás.
  • Talvez seja melhor você criar um NOVO TÓPICO do que postar uma resposta aqui.
Visitante
Este tópico está agora fechado para novas respostas
×
×
  • Criar Novo...

Informação Importante

Colocamos cookies em seu dispositivo para ajudar a tornar este site melhor. Você pode ajustar suas configurações de cookies, caso contrário, assumiremos que você está bem para continuar.