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

Visual Studio code


All examples in the book that are coded in Visual Studio are contained in the VisualStudio folder.

Opening the samples

There is a folder for each of the chapters that contains the Visual Studio sample code. You can just go ahead and open the samples by opening the solution files with Visual Studio 2010, shown as follows:

Modifying the service references

Some of the Visual Studio projects contain references to services that we created while building the samples. All of these references are created using an address that points to localhost, so it should also be working for you. If you have an AOS that is not installed as the first AOS on your machine, you will need to configure the service reference address:

  1. Right-click on the service reference and choose Configure Service Reference...:

  2. In the Address field, enter the address that you want to use:

If you do not need to configure the service references, you still need to perform an update of the service references. This is to make sure that the app.config file contains the correct settings for your system. The steps to perform the update of the service references are as follows:

  1. Right-click on the service reference and choose Update Service Reference....

  2. Verify that the app.config file contains the correct settings.