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
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

The rental service


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.

Rental header and line tables

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:

Rental service operations

There are three service operations...