Configuring microsoft dynamics ax 2012 connector

18
Configuring Microsoft Dynamics AX 2012 Connector Thanh Nguyen

Transcript of Configuring microsoft dynamics ax 2012 connector

Page 1: Configuring microsoft dynamics ax 2012 connector

Configuring Microsoft Dynamics AX 2012

Connector

Thanh Nguyen

Page 2: Configuring microsoft dynamics ax 2012 connector

Instructions

• The Microsoft Dynamics AX 2012 Connector enables Mule applications to interact with the Microsoft Dynamics AX Query Service

• Microsoft Dynamics AX is an enterprise resource planning (ERP) application

Page 3: Configuring microsoft dynamics ax 2012 connector

Prerequisites

• Install the Windows Gateway Services

Page 4: Configuring microsoft dynamics ax 2012 connector

Windows Gateway Services for Anypoint Platform

1. The connector sends an HTTP request to the Windows Gateway Services.

2. The Windows Gateway Services receives the HTTP request.3. The Windows Gateway Services executes the request

against the Dynamics AX System Services using the net.tcp protocol.

4. The Windows Gateway Services receives the response from the Dynamics AX System Services.

5. The Windows Gateway Services sends the response to the connector over HTTP.

6. The connector receives the response

Page 5: Configuring microsoft dynamics ax 2012 connector

Windows Gateway Services for Anypoint Platform

Page 6: Configuring microsoft dynamics ax 2012 connector

Configuring the Connector

• Step 1: Create a New Mule Project1. From the menu, select File > New > Mule

Project.2. In the New Mule Project window, enter ax-demo

as the Project Name.3. Click Finish

Page 7: Configuring microsoft dynamics ax 2012 connector

Configuring the Connector

• Step 2: Create and Configure a New Microsoft Dynamics AX Global Element1. Click the Global Elements tab.2. Click Create to bring up Global Type dialog box.3. In the Search text box, enter ax.4. Select Microsoft Dynamics AX: Gateway

Connection and click OK.5. Fill in the required parameters

Page 8: Configuring microsoft dynamics ax 2012 connector

Configuring the Connector

Page 9: Configuring microsoft dynamics ax 2012 connector

Configuring the Connector

Page 10: Configuring microsoft dynamics ax 2012 connector

Configuring the Connector

6. Click Test Connection to make sure the connection works correctly.

7. Once the connection is successful, click OK.

Page 11: Configuring microsoft dynamics ax 2012 connector

Configuring the Connector

• Step 3: Create a Flow to Query Dynamics AX

Page 12: Configuring microsoft dynamics ax 2012 connector

Configuring the Connector

• Step 3: Create a Flow to Query Dynamics AXClick the Message Flow tab.

1. Search for http and drag an HTTP connector onto the canvas. This creates a new flow.

2. Search for ax and drag the Microsoft Dynamics AX 2012 connector next to the HTTP connector, in the Process area.

3. Search for json and drag an Object to JSON transformer next to Microsoft Dynamics AX 2012

4. Double-click the HTTP connector. Click the plus sign (+) beside the Connector Configuration list

Page 13: Configuring microsoft dynamics ax 2012 connector

Configuring the Connector

• Step 3: Create a Flow to Query Dynamics AXClick the Message Flow tab.

5. In the HTTP Listener Configuration window, make sure Protocol is set to HTTP, Host is set to All Interfaces [0.0.0.0] (Default) and Port is set to 8081. Click OK.

6. Under Basic Settings, set the Path to /query.7. Double-click Microsoft Dynamics AX 2012

Page 14: Configuring microsoft dynamics ax 2012 connector

Configuring the Connector

• Step 4: Running the Flow– In Package Explorer, right click demo-ax and select

Run As > Mule Application.– Check the console to see when the application

starts. You should see the following message if no errors occurred

Page 15: Configuring microsoft dynamics ax 2012 connector

Configuring the Connector

• Step 4: Running the Flow

Page 16: Configuring microsoft dynamics ax 2012 connector

Configuring the Connector

• Step 4: Running the Flow– Open an Internet browser and visit

http://localhost:8081/query– The list of accounts ordered by descending name

should be returned in JSON format

Page 17: Configuring microsoft dynamics ax 2012 connector

Configuring the Connector

• Step 4: Running the Flow

Page 18: Configuring microsoft dynamics ax 2012 connector

Question and answer