Publishing and testing webservices in Dynamics NAV or Business Central is a necessary task and can be very simple by following these instructions.
Lots of web service vendors these days are tightening their requirement security protocols, SSL was removed back on the hearthbleed days, and not TLS version 1.0 and 1.1 are getting outed too. So suddenly NAV code that has been working for years stop working unless you change your client to select TLS1.2. Thankfully, there is a simple trick to choose the security protocol used by DotNet.
In this post I demonstrate how you can get XML data from a Web Service and then process the XML in NAV in order insert the needed values into a table.
I made the example using a service provided by the National Bank of Romania. This Web Service, gives Exchange Rates in XML format and I think it’s a good example for learning/practice purposes because it does not require a key and the XML is not too complex:
In the previous post we looked at enabling the built-in integration of Dynamics NAV and Time Series, which uses a Machine Learning (ML) model to predict inventory or cash requirements. This time we will make a very basic example with the sole aim of sending data from Dynamics NAV as input into an ML model that is running as a web service, and receive a result back from the model.