Microsoft Dynamics NAV is still using the old DOS code page for files. If you create a file with the file variable and write text to that file you will get a DOS file. The same thing happens when writing to a BLOB and exporting to a file. The Code example below handles the DOS code [...]
Posted to
Gunnar's Blog
by
thegunzo
on
2013-5-30
Filed under:
Filed under: Dynamics NAV, How-To's, NAV 2009 R2, XML, Data Transfer, C/Side Code, CSV File, Dotnet interoperability, Text File, NAV 2013, Stream
These days I keep busy upgrading Advania solutions to Dynamics NAV 2013. All the older solutions that have communicated with web services have DOM objects and manually created XML files. We had to add and remove namespace to be able to use XML ports but in the end this worked flawlessly. In NAV 2013...
In August last year I posted a way to use dotnet interop and webrequest to replace the automation objects. I saw that we had a limitation that we have gotten used to. When using the WinHTTP automation we where able to look at the status and if the status was not the integer 200 we [...]
I have now completed my first all-dotnet codeunit. The codeunit uses a dll file that I created from the web service WDSL. This makes the programming a lot easier. This solution has a BLOB fields that stores both incoming and … Continue reading →
Posted to
Gunnar's Blog
by
thegunzo
on
2012-11-26
Filed under:
Filed under: Dynamics NAV, Solutions, Role Tailored Client, Web Services, NAV 2009 R2, XML, Soap Services, C/Side Code, Dotnet interoperability, BLOB, Add-in, NAV 2013
I am currently working on a solution that requires a Dynamics NAV client to communicate with Dynamics NAV web service. This I have done before with the classic client and have used automation objects for the job. Now I wanted … Continue reading →
XE.COM claims to be the world’s favorite currency site. They have XML data feed options that can be used to download the latest currency exchange rates into Dynamics NAV. I wrote a batch to import the current currency exchange rate from their data feed. … Continue reading →
I have been using the automation ‘Microsoft XML, v6.0′.XMLHTTP to communicate with web services and web sites. I have been experiencing a problem with this automation when running in Role Tailored Client. The solution has been to use the automation ‘Microsoft XML, … Continue reading...
On several occasions I have needed to create a code to communicate with Soap Web Services. The manual labor in creating the functions and XML Ports is something that I would like to be rid of. On that node I … Continue reading →
I have been working on NAV Time Registration and the solution is almost ready. The last step was to create a web service that supports stand-alone punching clocks, both in .net c# and also as a NAV client. The web … Continue reading →