Jump to content
Notícias do ACBr

click.png

click.png

click.png

click.png

click.png

click.png

logo_acbr_paygo.png

TEF ACBr PayGo
Seja um revendedor e ofereça uma solução completa para seu cliente.


Saiba mais

beneficios.png

click.png

click.png

click.png

Create new service to know connection status


Go to solution Solved by José M. S. Junior,
  • Este tópico foi criado há 1006 dias atrás.
  • Talvez seja melhor você criar um NOVO TÓPICO do que postar uma resposta aqui

Recommended Posts

  • Consultores

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

  • Like 1
Consultora SAC ACBr

Juliana Tamizou
Ajude o Projeto ACBr crescer - Assine o SAC

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 to comment
Share on other sites

  • Consultores

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

  • Like 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 to comment
Share on other sites

  • Consultores

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...
 

  • Like 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 to comment
Share on other 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?

  • Like 1

[]'s

Consultor SAC ACBr

Elton
Ajude o Projeto ACBr crescer - Assine o SAC

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 to comment
Share on other sites

  • Consultores
  • 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 ...

  • Like 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 to comment
Share on other sites

  • Consultores


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.

Edited by EMBarbosa
  • Like 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 to comment
Share on other sites

  • Este tópico foi criado há 1006 dias atrás.
  • Talvez seja melhor você criar um NOVO TÓPICO do que postar uma resposta aqui
Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.