O'Reilly logo

Microsoft Dynamics AX 2012 Development Cookbook by Mindaugas Pocius

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Consuming an external service

In Dynamics AX, external services can be used in a variety of scenarios for retrieving information from external providers. This could be currency exchange rates, address information, logistics data, and many others. Such external services can be consumed directly from X++ code, with the help of Visual Studio.

In this recipe, we will demonstrate how external services can be consumed from X++ code. For demonstration purposes, we will use the service created in the Creating a custom service recipe, and we will assume that this service is an external service.

How to do it...

Carry out the following steps in order to complete this recipe:

  1. In Visual Studio, create a new Visual C# Class Library project named ExtSrv.
  2. Add a new ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required