NAV 2009 SP1
-
Web Services Infrastructure and how to Create an Internal Proxy
I am NOT an expert in how to setup a secure network and I do NOT know a lot about firewalls, DMZ setup and all of these things, but I have seen a lot in my 25 years of working with computers and the following (absolutely non-exhaustive) gives a good picture of a common network situation of companies, who wants to interact with customers and partners through Web Applications and/or Web Services. DMZ can be at the customer site or...
-
Connecting to NAV Web Services from VBScript
The Connecting to NAV Web Services series is coming to an end. I think I have covered the majority of platforms from which you would like to connect and use NAV Web Services – some things are easy and some things are a little harder. I did not cover Flash nor did i cover things like the iPhone or iPod Touch, primarily because I don’t think the demand is there. If I have forgotten any platform/language please let me know...
-
Connecting to NAV Web Services from Windows Mobile 6
I have created my very first Windows Mobile App! This is running in an Emulator using the Professional SDK. I also tried to deploy the solution to my physical device (my Smartphone), which also worked: To be honest, the biggest challenge is to setup everything so that you can get going. A couple of useful links to get going Location to download Windows Mobile 6 SDK: http://www.microsoft.com/downloads/details.aspx?FamilyID=06111a3a-a651-4745-88ef-3d48091a390b&DisplayLang=en The Windows Mobile 6 SDK is not included in Visual Studio 2008, you...
-
Connecting to NAV Web Services from Microsoft Dynamics NAV 2009 SP1
Please read this post to get a brief explanation of the scenario I will implement in Microsoft Dynamics NAV 2009 SP1. Please also read this post in order to understand how Web Services works using pure XML and no fancy objects. Like Javascript, NAV 2009 SP1 does not natively have support for consuming Web Services. It does however have support for both Client and Server side COM automation and XmlHttp (which is compatible with XmlHttpRequest which we used in the...
-
Logging the XML generated from .net or received from NAV WS
When working with Web Services using languages who doesn’t natively have Web Services support (like Javascript and NAV self) you have to create a SOAP envelope yourself in the correct format. Of course you can do so by looking at the WSDL, understanding SOAP and using theory – or… – you can create a small C# application, invoke the Web Service you want to and see what XML .net creates for this. You can also see what XML you get...
-
Connecting to NAV Web Services from Javascript
Prerequisites Please read this post to get a brief explanation of the scenario I will implement in Javascript. BTW. Basic knowledge about Javascript and XML is required to understand the following post:-) Browser compatibility The sample in this post will work with Internet Explorer. I have only tried this with IE8, but according to documentation it should work from IE5 and up. I actually also tried to download Mozilla FireFox 3.6 and Opera 10.10 – but I failed to make...
-
Connecting to NAV Web Services from Visual Basic .net using Service Reference
This post is really just a Visual Basic version of this post and this post combined, please read those posts before continuing this post. As described in the other posts, there are two ways to work with Service References – one is to keep the configuration in a .config file and the other is to do everything from code. Using the .config file First I create a Visual Basic Console application and add the two service references as explained in...
-
Connecting to NAV Web Services from Visual Basic .net using Web Reference
This post is really just a Visual Basic version of this post, please read that post before continuing. Note, this is my very first Visual Basic application. I don’t think there are any ways to do this easier – but then again – how should I know. I am creating a Visual Basic Console application and adding two Web References (like it is done in this post) and then it is really just writing the code The code Module Module1...
-
Connecting to NAV Web Services from C# using Service Reference (code version)
You should read the post about connecting to NAV Web Services from C# using Service Reference (config file version) before continuing here. Code is king As you saw in the other post, the config file was pretty complicated and although it is editable by hand and as such could be modified at installtime or whatever, I actually prefer to capture a number of these settings in code and only have very specific values in a config file (like f.ex. the...
-
Connecting to NAV Web Services from C# using Service Reference (config file version)
Prerequisites Please read this post to get a brief explanation of the scenario I will implement in C# using Web References. For C# we can leave the Service Tier running Negotiate or we can use Ntlm as PHP and Java. In this example I will assume that the Service Tier is running SPNEGO (which is the default) BTW. Basic knowledge about C# is required to understand the following post:-) Version and download I am using Visual Studio 2008 professional with...
-
Connecting to NAV Web Services from C# using Web Reference
Prerequisites Please read this post to get a brief explanation of the scenario I will implement in C# using Web References. For C# we can leave the Service Tier running Negotiate or we can use Ntlm as PHP and Java. In this example I will assume that the Service Tier is running SPNEGO (which is the default) BTW. Basic knowledge about C# is required to understand the following post:-) Version and download I am using Visual Studio 2008 professional with...
-
Connecting to NAV Web Services from Java
Prerequisites Please read this post to get an explanation on how to modify the service tier to use NTLM authentication and for a brief explanation of the scenario I will implement in Java. BTW. Basic knowledge about Java is required to understand the following post:-) Version and download Java does not natively have support for the SPNEGO authentication protocol, but it does have support for NTLM authentication, so you will have to change the Web Services listener to use that....
-
Connecting to NAV Web Services from PHP
Prerequisites Please read this post to get an explanation on how to modify the service tier to use NTLM authentication and for a brief explanation of the scenario I will implement in PHP. BTW. Basic knowledge about PHP is required to understand the following post:-) Version and download In my sample I am using PHP version 5.2.11, which I downloaded from http://www.php.net, but it should work with any version after that. In order to make this work you need to...
-
Connecting to NAV Web Services from …
I promised to write some posts about how to connect to NAV Web Services from various other programming languages/platforms and I guess it is about time I kept my promise. I will create a couple of posts on how to connect to NAV Web Services from: PHP Java C# using Web Reference C# using Service Reference Javascript Visual Basic using Web Reference Visual Basic using Service Reference Windows Mobile Microsoft Dynamics NAV 2009SP1 and more… Scenario For all these I...
-
Auto Deployment of Client Side Components – take 2
Updated the link to the ComponentHelper msi on 12/11/2009 Please read my first post about auto deployment of Client side components here before reading this. As you know, my first auto deployment project contained a couple of methods for automatically adding actions to pages, but as one of my colleagues in Germany (Carsten Scholling) told me, it would also need to be able to add fields to tables programmatically in order to be really useful. In fact, he didn’t just...
-
Dynamic references to NAV Page Web Services in C# – take 2
In this post from April, I explained how to make dynamic references to page based Web Services, but the post really left the developer with a lot of manual work to do using reflection. So – I thought – why not create a couple of helper classes which makes it easier. Basically I have created a generic NAVPageServiceHelper class, which encapsulates all the heavy lifting of reflection and leaves the developer with a set of higher level classes he can...
-
Displaying Company information in Card pages
I received a question from a customer, who is running multiple companies and often have multiple instances of NAV open with different companies. On the main page, they do have information about what company is the active: but when they have opened a number of Task Pages in the various instances of NAV, they cannot distinguish one from the other. Example: This image tells you the page and the Customer name – and you can easily identify the right page...
-
What COMPANY to use?
As you know, when creating an application consuming NAV Web Services you need to specify the Company name as part of the URL to the Web Service, but what company should you be using? Some applications are web front-ends placing data from the web application into NAV. For applications like this you typically would have a config file in which you specify what company things needs to go to. For these applications, this post adds no further value. Other applications...
-
Extending page Web Services (and creating a Sales Order again)
It has been working in the same way since NAV 2009, but I still get asked often how this works, so why not write up a quick post on this. I also realize that my prior post on how to create Sales Orders through Web Services was made very complex due to compatibility with NAV 2009. This post only works in NAV 2009 SP1 and will show how to extend the Order page with a Post function and show how...
-
Synchronize A/D users to NAV
During my work with demos like Edit In Excel, I wanted to make sure that these things would work in all localized versions of NAV 2009 SP1 – meaning that I needed to install 14 different databases and 14 running Service Tier’s. Having done that, I also wanted to allow my colleagues who needed to check something, access to these service tiers. For a geek (like me:-)), that problem looks like something you need to write an application for, even...
-
Timer events on a page
Have you ever wanted to have an event raised every 10th second on a page in the RoleTailored Client? Wait no more – here is how you can do just that in Microsoft Dynamics NAV 2009SP1. A Timer control is a Non-Visual Add-In I have seen a number of development platforms treat a Timer as a Non-Visual Add-In (including .net) – so I thought I would try to create a non-visual Add-In for NAV – and what better than create...
-
Using touchscreens with the RoleTailored Client
I LOVE the RoleTailored Client, I LOVE the fact that everything is metadata driven and i LOVE what this will give us (us being everybody using NAV) going forward. As a result of the investments leading to NAV 2009, NAV has by far the most modern UX and the new framework allows us to innovate faster and more consistent than any other ERP solution out there. We can change the UX to follow Microsoft Office 2010 if we decide to,...
-
Microsoft Dynamics NAV 2009 SP1 launched!
I guess it is a little late to call this news, but nevertheless – on September 1st NAV 2009 SP1 launched. SP1 is big release for the user – the majority of the feedback we got from users on NAV 2009 was taken into consideration and I truly believe that we will see hard core classic client users shift and prefer the Role Tailored Client with these changes. Yes, they will have to get used to new ways of doing...
-
Auto deployment of Client Side Components
NOTE: There is an updated post on Auto deployment of Client Side Components here. When you install the RoleTailored Client on a number of clients, you might need to install a number of Client side components as well. This might not sound as too much of a problem when you need to install the client anyway – but lets say you install an ISV Add-on with a live customer, who already have 100 clients install – and now you need...
-
Multiple Service Tiers – SP1
Right around the release of Microsoft Dynamics NAV 2009, I wrote a blog entry with some .bat files on how to create multiple Service Tiers when working with NAV 2009. The blog post is here: http://blogs.msdn.com/freddyk/archive/2008/10/29/multiple-service-tiers.aspx Now NAV 2009 SP1 is about to be released, it is time for a small update. One of the files of the package is a CustomSettings.template file, which really is just the CustomSettings.config with a few values replaced with variable names, so that we...
-
Integration to Virtual Earth – Part 4 (out of 4)
(a small change added that simplifies the SmallVEControl class definition) With the release of NAV 2009 SP1 CTP2 (to MVPs, TAP and BAP) and the official release of the statement of Direction, I can now write about the last part of the integration to Virtual Earth. People who hasn’t access to NAV 2009 SP1, will unfortunately have to wait until the official release until they can take advantage of this post. Please not that you should read Part 1, Part...
-
Handling Sales Orders from Page based Web Services – in NAV 2009SP1 (and RTM)
First of all, there isn’t going to be a new post on every single record type on how to handle them from Web Services – but Sales Orders are special and the reason for the “(and SP1)” in the titel refers to the fact, that there are changes between RTM and SP1 or maybe a better way to state it is, that the way you could do it in RTM (that might lead to errors) is no longer possible –...
-
Web Services changes in NAV 2009 SP1
NAV 2009 SP1 is being released later this year, so why write about it now? The main reason is, that NAV 2009 SP1 comes out with a couple of changes, you might want to take into consideration when writing towards NAV 2009 Web Services. Except for some performance enhancements, the major changes are: New standard encoding of the Company name I think one of the questions that has been asked the most is, how does my company name look in...


