Java library for Brazilian electronic invoice (NFE)

I've been developing an enterprise management system for some time. I need to add to it the functionality of issuing electronic invoice in the Brazilian standard.

Is there any well tested and preferably free and open source Java library that helps me with this?

Author: Marco Souza, 2013-12-12

5 answers

I know of jNFE and JeNiFEr. I didn't use either, but I put more faith in Jenifer. On github they also have Caelum-Stella, which has an NFE module, although not documented on the wiki.

Alias, documentation is what is not missing in these projects: there is no lack of what to do regarding documentation! :)

 23
Author: Daniel C. Sobral, 2013-12-12 17:55:15

I am one of the developers of a java library for NFE 3.10, it has several features besides batch sending. It has several unit tests (+1000) in addition to having validations of values at the setter level and validating against an XSD in batch sending, in addition to the concern to be easy to use :)

You need a configuration class and the library Facade to communicate with Sefaz.


NFStatusServicoConsultaRetorno retorno = new WSFacade(config).consultaStatus(NFUnidadeFederativa.SC);
System.out.println(retorno.getStatus());
System.out.println(retorno.getMotivo());

If the webservice is ok, the result it will be:


107
Servico em operacao

Follow the link:

Https://github.com/wmixvideo/nfe

 8
Author: Jeferson Viana Perito, 2016-05-11 17:21:35

I got interested in your question because some time ago I did an NFE pilot project using Ruby and the information is actually harder to find.

Looking at the SP Farm Bureau website, you have an NFE emitter, made in Java. http://www.emissornfe.fazenda.sp.gov.br/download_v2.html
If you take a look at the jnlp manifest that it downloads, it has several libraries (jars) that could be useful.

As apparently does not work on Mac, I couldn't dig deeper. I do not know if I would download these jars, if they have documentation and what would be the type of license.

Is just a pointer for you to investigate.

 5
Author: Ecil, 2013-12-12 17:46:22

You probably already know the ACBr project which is mainly made for Delphi. They have an executable software (ACBr Monitor) that is in the SysTray of the machine and will be waiting for commands in the syntax of the acbr components. Because of this it works in Java as well.

I highly recommend this Open Source Project, for more information on the Monitor see the website:

Http://acbr.sourceforge.net/drupal/?q=node/19

In the forum you can answer the questions that have on the subject.

Http://www.projetoacbr.com.br/forum /

 3
Author: Giovani, 2015-01-03 12:09:08

Hello! If you have a service Note involved and your software's primary purpose is not to issue notes, integrate it with an invoice webservice. For this component, especially NFSE, needs to update contante, out of the numerous feces that the prefectures are with all sorts of problems and do not take the blame. Currently I use and indicate the www.enotasgw.com.br. In the case of a product note I indicate the ACBR, because it is a more mature project and has several other components that can be useis, like tax coupon and etc. The contra indication is to need Windows Server.

 0
Author: Norivan Oliveira, 2017-07-02 17:38:19