For the better part of this book, we have developed services in Microsoft Dynamics AX and exposed them. But in this chapter, we will show how to consume a web service from Microsoft Dynamics AX 2012.
In previous versions of Microsoft Dynamics AX, you could add a web service reference in a reference node in the AOT. This generated proxy classes and other artifacts you could then use to consume the service. In Microsoft Dynamics AX 2012, there is no longer an option to add a service reference to the AOT. Instead Microsoft Visual Studio is used to generate all artifacts, which are then added to the AOT.
How this works and how this can be done will all become clear in this chapter.
The following topics will be covered in this chapter:
Installing prerequisites: Because part of the development takes place in Visual Studio, we have to install additional components. You will learn what components to install and what they do.
Visual Studio development: After introducing the demo...