Consume Webservice Nfedistribuicaodfe - VB.NET or C# - Manifestation/Download Nfe

Asked

Viewed 2,537 times

8

On the Nfe Nacional website (http://www.nfe.fazenda.gov.br/portal/webServices.aspx?tipoConteudo=Wak0FwB7dKs=) i already have a software made in VB.NET that consumes the WEBSERVICES (NfeConsultaDest And NfeDownloadNF) but due to a new technical standard these webservices will be discontinued.

The new one is in force WEBSERVICE (NFeDistribuicaoDFe) for manifesting/downloading of fiscal notes.

Someone has some ready base so that I can at least find the "path of the stones" of manifestation and download (by access key Nfe or Lot) ?

  • By the time I know this web service is already working, including I am consuming it for queries. this is the url: https://www1.nfe.fazenda.gov.br/NFeDistribuicaoDFe/NFeDistribuicaoDFe.asmx if you are using this I can help you with something, my application is in java. what I am researching is how to do to manifest the note and consult whether it is manifested or not, which apparently is not available in the consultation of this new service.

  • It would help me a lot, I taking the basis of how to consult already opens at least one way here

  • Related: https://answall.com/questions/53209/nfe-3-10-webservice-mg?rq=1

1 answer

1

I think by now you should have done it, but since this week I’ve been through this same point I’ve discovered a lot of things. Even with the valid Digital certificate I could not reference the web service methods in my Solution so I saved the WSDL and converted it into class. Having done that I was able to generate an xml and send the request to the donwload.

To convert the WSDL into class I used the terminal of the visual studio 2017 there you have point your file and it converts.

wsdl C:\caminho so seu arquivo

Simple as that, then just play class in your project. Ah am doing in C#.

The return is a string with the documents zipped, ai vc has to collect the tag and perform the conversion.

Browser other questions tagged

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