O'Reilly logo

Extending Microsoft Dynamics NAV 2016 Cookbook by Alexander Drogin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Calling object methods in SOAP web services

The SOAP protocol is designed to provide access to object's methods over the TCP connection. In the previous recipe, we published a NAV object, and now we will see how to consume the service provided by the published codeunit and call its methods.

How to do it...

In this recipe, you will create a project in Visual Studio to consume a NAV web service and call a codeunit method.

  1. Run Visual Studio. Create a new project based on the Console Application project template. In the Name field, enter the name of the project: PostCodeWebServiceClient.
  2. In the Solution Explorer window, expand the contents of the project, right-click on the References section, and choose the option Add Service Reference from the drop-down ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required