Book Image

Microsoft Dynamics AX 2012 R2 Services

Book Image

Microsoft Dynamics AX 2012 R2 Services

Overview of this book

Table of Contents (17 chapters)
Microsoft Dynamics AX 2012 R2 Services
About the Authors
About the Reviewers

Key components

We will start by looking at the framework and its components. The key components of a document service are as follows:

  • A query that is used in the AIF Document Service Wizard to create the document service

  • A document class that represents a business entity and contains the business logic for this entity

  • One or more AxBC classes that encapsulate a table and are used by the document class to create, modify, and delete data in tables

  • A service class that contains the service's operations

Of course, there's more to these components than the few words we've used here to describe them. We will now look at these components one by one, starting with the query.

The document query

Each document service is based on a query defined in the AOT. Using the AIF Document Service Wizard, a document class is generated and XML schema definitions that are used for the XML serialization are derived from the corresponding query. Therefore, the XML message will have a correlation to the query object. In...