-
Book Overview & Buying
-
Table Of Contents
Microsoft Dynamics AX 2012 R2 Services
The contracts and service operations that we have created to retrieve titles are pretty simple. They might be all you need in a real-life application. However, it is more likely that you will need data contracts that are more complex. To demonstrate this, we've added the rental service to the demo application. The rental service allows external applications to retrieve rental information or create rentals. Creating this service with all data contracts step-by-step would take too long, so we will discuss the artifacts only at a high level, starting with the database schema of the tables that we will use.
The following is a simple schema of the tables that we will use. A rental header contains information about the rental, such as the store and the transaction date. A rental header is related to one or more lines that contain the details of the rental, such as the item that was rented:

There are three service operations...
Change the font size
Change margin width
Change background colour