-
Book Overview & Buying
-
Table Of Contents
Building ERP Solutions with Microsoft Dynamics NAV
By :
To expose the NAV business objects and entities we have previously created to an external world, we need to publish them as a web service:
To do so, we can open the Web Service page in NAV and create the new entries (with Published = TRUE) for the Codeunit object:

Here we need to set the following parameters:
Object Type: Codeunit
Object ID: ID of our previously created codeunit in NAV (obviously, the object ID can be a standard range or a custom range)
Service Name: This is the name of our codeunit web service (without spaces!)
Published: TRUE
When published, NAV gives the SOAP URL. We can test if all is working by opening a browser and load the returned URL.
For every Query object to publish, we need to create an entry in the Web Services page with:
Object Type: Query
Object ID: ID of our previously created Query in NAV
Service Name: This is the name of our Query web service (without spaces!)
Published: TRUE
This is the final result:

After publishing a Query object...