Creating a Dynamics AX web service
There are a number of web services that have already been created and deployed with the standard Dynamics AX install. There are a lot more services that you can publish as web services through the AOT in just a matter of minutes, allowing you to access and update almost any area of Dynamics AX from other applications.
In this recipe, we will show you how you can create new web services from within the Dynamics AX development environment.
How to do it...
To create a new web service within Dynamics AX, follow these steps:
From within the AOT explorer, create a new project for the web service.
From inside the project, right-click on the project name and from the New submenu, select Service Group to create a new web service group.
Rename your service group to be something a little more appropriate. In this case, we are creating a sales order web service; so we will rename it as
SalesOrderService
.From the AOT browser, open up the Services group, find the service...