Consuming a document service
In Dynamics AX, document services normally provide a number of predefined operations, such as create, delete, read, find, findKeys, and others. Each operation is responsible for some particular action, for example, create allows creating a new document, delete allows deleting a document, and so on. The read operation was demonstrated in the Consuming an existing document service recipe.
In this recipe, we will create a .NET console application to demonstrate how the find operation can be used. We will consume the service created in the Creating a document service recipe to list all currencies in the system.
How to do it...
Carry out the following steps in order to complete this recipe:
1. In Visual Studio, create a new Visual C# Console Application project named
ConsumeBasicDocumentService
.2. Add a new service reference named
BasicCurrencyServices
to the project.3. Copy the address from the WSDL URI field, from the Creating a document service recipe, into the...