Quantcast
Channel: NAV Three Tier — mibuso.com
Viewing all articles
Browse latest Browse all 10032

XMLport to import xml from file on website

$
0
0
In Dynamics NAV 2013 I am trying run an XMLport from a codeunit that I will execute from a NAS.
The xmlport has been designed to import exchange rates. The source file is hosted on a web server however the problem I get when running the codeunit is that it errors saying it cant find the file. the message in the event viewer is .. The specified path is invalid.

My code is below. Can this actually be done via an xmlport by opening a file hosted on a webserver?

XMLFile.OPEN('http://www.ecb.europa.eu/stats/eurofxref/eurofxref-daily.xml');
XMLFile.CREATEINSTREAM(XMLInstreamStream);
XMLPORT.IMPORT(XMLPORT::"Import Exchange Rates",XMLInstreamStream);
XMLFile.CLOSE;

Viewing all articles
Browse latest Browse all 10032

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>