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

Exposing and consuming OData web services

The SOAP protocol serves well when you need a standardized interface for an object's methods. If you need to read and update table data, the OData (Open Data) protocol can be a better alternative. It is especially efficient in providing APIs that are open for querying.

NAV Page and Query objects can be published as OData services, providing access to underlying table data to consuming applications.

How to do it...

Now we will publish a page object as an OData web service and read the records from an external application in C#.

  1. Start the NAV client and open the page Web Services from Departments | Administration | IT Administration | Services.
  2. Click New to create a web service. Select Page in the Object Type ...

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