Creating a web service
Web services are a standardized way of integrating applications that share business logic and data. With NAV 2009 you can easily create a web service in a matter of minutes.
How to do it...
Create a new page as described in the Creating a list page recipe in Chapter 12, RoleTailored Client.
From Object Designer run form 810, Web Services.
Add the following record to the table:
Object Type
Object ID
Service Name
Published
Page
51003 (or the ID of your Page object)
Web Service Example
Yes
Close the form.
How it works...
With NAV 2009, creating a web service is easy. Any code exposed through a page or codeunit object can be exposed as a web service. There is no need to create your own .NET class or write code outside NAV to access the database. All that is required is to add the object to the web service table and check the Published field.
See also
Creating an InfoPath form with NAV data
Consuming a web service