Consume WebService NFeDistribuicaoDFe - VB.NET or C # - Manifestation / Download NFe

6

On the National NFe website ( link ) I already have one software made in VB.NET that consumes WEBSERVICES ( NfeConsultaDest E NfeDownloadNF ) but due to a new technical standard these webservices will be discontinued. The new WEBSERVICE ( NFeDistribuicaoDFe ) is in effect for manifest / download invoices.

Does anyone have a ready base so I can at least find the "path of the stones" of manifestation and download (by access key NFe or Lot)?

    
asked by anonymous 01.02.2017 / 18:42

1 answer

0

I think that by now you should have done it, but as I went through that same point I discovered many 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 a class. This done I could generate an xml and send the request to the download.

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

wsdl C:\caminho so seu arquivo

Simple like this, then just play the class on your project. Oh I'm doing it in C #.

Return is a String with the zipped documents, so you have to collect the tag and perform the conversion.

    
23.03.2018 / 16:16