Consume Sefaz’s Webservice

Asked

Viewed 1,135 times

1

I need to obtain information from a company through the CNPJ, however, when searching on the Internet I could notice that there are several web-services of Sefaz, each one aimed at a Brazilian state.

This way, if the webservice is from RIO I can’t recover information from a CNPJ from São Paulo.

I learned that there is a 'universal' web-service of Sefaz and I would like to find it... can you tell me where I find this blessed? otherwise the program would be well prone to failure as I would be required to work with a webservice for each state.

  • 1

    Friend, I was able to find the site where the search is possible: http://www.receita.fazenda.gov.br/PessoaJuridica/CNPJ/cnpjreva/Cnpjreva_Solicitacao.asp However a free web service to do this I don’t think you will find, even because if researching will find several that implement it and sell the service. .

  • serio? there is no free alternative?

  • I found a way to do it, however it is necessary to use a certificate of issuance of invoice. I am using the C# tool itself to add reference to a service, and without using the certificate I cannot recover the wsdl, I would like to know how to insert the blessed certificate when adding the reference.

  • Unfortunately I don’t know how to work with C#. I recommend you create a new question here in the OS

  • The recipient consultation service would not be for you: https://www.nfe.fazenda.gov.br/NFeConsultaDest/NFeConsultaDest.asmx (to see more of these services go to the portal of the Sefaz http://www.nfe.fazenda.gov.br/portal/webServices.aspx?tipConteudo=Wak0FB7dKs=)

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.