Configuring microsoft dynamics ax 2012 connector
-
Upload
cong-thanh-nguyen -
Category
Technology
-
view
123 -
download
1
Transcript of Configuring microsoft dynamics ax 2012 connector
Configuring Microsoft Dynamics AX 2012
Connector
Thanh Nguyen
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
Prerequisites
• Install the Windows Gateway Services
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
Windows Gateway Services for Anypoint Platform
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
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
Configuring the Connector
Configuring the Connector
Configuring the Connector
6. Click Test Connection to make sure the connection works correctly.
7. Once the connection is successful, click OK.
Configuring the Connector
• Step 3: Create a Flow to Query Dynamics AX
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
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
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
Configuring the Connector
• Step 4: Running the Flow
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
Configuring the Connector
• Step 4: Running the Flow
Question and answer