Book Image

Microsoft Dynamics AX 2012 Services

By : Kenny Saelen, Klaas Deforche, Saelen Kenny
Book Image

Microsoft Dynamics AX 2012 Services

By: Kenny Saelen, Klaas Deforche, Saelen Kenny

Overview of this book

Because an ERP system like Microsoft Dynamics AX 2012 plays a central role in an organization, there will always be the need to integrate it with other applications. In many cases, services are the preferred way of doing this, and Microsoft Dynamics AX 2012 is now more flexible than ever when it comes to the creation and use of these services. Understanding these services will help you identify where they can be used, and do so effectively."Microsoft Dynamics AX 2012 Services" is a hands-on guide that provides you with all the knowledge you will need to implement services with Microsoft Dynamics AX 2012. The step-by-step examples will walk you through many of the tasks that you need to perform frequently when creating and using services."Microsoft Dynamics AX 2012 Services" provides detailed and practical examples for creating and using services that will make it a resource you will consult many times during your implementationsThis book helps you to identify situations where services can be used for your implementations. By providing step-by-step instructions for many of the common tasks, you will gain practical know-how on to get the job done.Easy to follow instructions are provided for all types of services you will encounter. You will learn how to create document services using the AIF Document Service Wizard and how to use X++ to create custom services. You will also learn how to deploy services and web services and how you can consume them in both X++ and .NET. The services are also put to use in the SysOperation framework, which uses services to run business logic and is the new way to create batch processes in Microsoft Dynamics AX 2012.
Table of Contents (14 chapters)

Preface

Since an ERP system like Microsoft Dynamics AX 2012 plays such a central role in an organization, there will always be the need to integrate it with other applications. In many cases, services are the preferred way of doing this, and Microsoft Dynamics AX 2012 is now more flexible than ever when it comes to the creation and use of these services. Understanding these services will help you identify where they can be used, and do so effectively.

Microsoft Dynamics AX 2012 Services is a hands-on guide that provides you with all of the knowledge you will need to implement services with Microsoft Dynamics AX 2012. The step-by-step examples will walk you through many of the tasks you need to perform frequently when creating and using services.

What this book covers

Chapter 1, Getting Started with Microsoft Dynamics AX 2012 Services, introduces the concept of services and explores the new features and enhancements made to them in Microsoft Dynamics AX 2012.

Chapter 2, Service Architecture and Deployment, dives deeper into the service architecture and explores the different options that are available when deploying services.

Chapter 3, AIF Document Services, focuses on the creation, deployment, and consumption of AIF document services.

Chapter 4, Custom Services, will show you how to create and deploy custom services and consume them using a WCF application using new concepts such as attributes.

Chapter 5, The SysOperation Framework, builds upon the knowledge gained from developing custom services to demonstrate how you can run business logic in Microsoft Dynamics AX 2012 using services and the SysOperation framework.

Chapter 6, Web Services, walks you through the steps needed to consume an external web service in Microsoft Dynamics AX 2012 using Visual Studio integration.

Chapter 7, System Services, demonstrates how powerful system services that are provided out-of-the-box can be, and how they allow you to build applications faster.

What you need for this book

To use the example code files provided with this book, the following prerequisites must be available.

  • Microsoft Visual Studio 2010

  • Microsoft Dynamics AX 2012

  • Microsoft Dynamics AX 2012 Management Utilities

A full list of software requirements can be found in the Microsoft Dynamics AX 2012 System Requirements document available for download at http://www.microsoft.com/en-us/download/details.aspx?id=11094.

Who this book is for

When you are developing for Microsoft Dynamics AX 2012, you will certainly come into contact with services, even outside of integration scenarios. Because of that, this book is aimed at all Microsoft Dynamics AX developers, both new and those experienced with services and Microsoft Dynamics AX 2012.

This book assumes no other knowledge than a basic understanding of MorphX and X++. Even beginners will be able to understand and complete the examples in this book. Those new to services will get the most out of this book by doing a complete read-through, but those who are experienced can jump right in. The idea is that this book can be used both to educate yourself and as a resource that can be consulted during development.

Some examples use C#.NET, so experience with Visual Studio is a plus but not a must. This book is not aimed at .NET developers.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: "The service contract is a reflection of the DocumentHandlingService class that can be found in the AOT."

A block of code is set as follows:

public static void main(Args args)
{
    SysOperationServiceController controller;

    controller = new SysOperationServiceController();
    controller.initializeFromArgs(args);
    controller.startOperation();
}

Any command-line input or output is written as follows:

T-000505 The Dark Knight 119
T-000506 The Lord of the Rings: The Return of the King 112

New terms and important words are shown in bold. Words that you see on the screen, in menus or dialog boxes for example, appear in the text like this: "Go to the Service Groups node, right-click on it, and click on New Service Group."

Note

Warnings or important notes appear in a box like this.

Tip

Tips and tricks appear like this.

Reader feedback

Feedback from our readers is always welcome. Let us know what you think about this book—what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply send an e-mail to , and mention the book title via the subject of your message.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Downloading the example code

You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

Errata

Although we have taken every care to ensure the accuracy of our content, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in the text or the code—we would be grateful if you would report this to us. By doing so, you can save other readers from frustration and help us improve subsequent versions of this book. If you find any errata, please report them by visiting http://www.packtpub.com/support, selecting your book, clicking on the errata submission form link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata will be uploaded on our website, or added to any list of existing errata, under the Errata section of that title. Any existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works, in any form, on the Internet, please provide us with the location address or website name immediately so that we can pursue a remedy.

Please contact us at with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at if you are having a problem with any aspect of the book, and we will do our best to address it.