Creating the consumer application
Let's learn how to create the consumer application by performing the following steps:
In order to create the application that will use our published NAV web service, open Visual Studio, create a new project, and in the New Project window select the Console Application project type:

Give a desired name to your solution (for example,
ConsoleApplicationNAV) and click OK.Visual Studio creates the template for the solution project. You can see it in the Solution Explorer window in the right pane:

Here, the
Program.csfile contains the core of the console application (Main) whileApp.configis the application configuration file, an XML file that contains specific settings for the application.Now we have to add a reference to our NAV web service in order to use it. To do this, right-click on your solution file and choose Add | Service Reference… as shown in the following screenshot:

Here you can add a reference to one or more Windows Communication Foundation...