Dynamic AX : Application Integration Framework

12

Click here to load reader

description

MS Dynamics AX Integration framework, Introduction to AIF How document are exchange AIF Architecture Types of Services Integration Ports Lab session

Transcript of Dynamic AX : Application Integration Framework

Page 1: Dynamic AX : Application Integration Framework

Application Integration Framework [email protected] Dynamics AX 2012 Developer

Page 2: Dynamic AX : Application Integration Framework

Topics Coverage

• Introduction to AIF• How document are exchange• AIF Architecture• Types of Services• Integration Ports• Lab session

Page 3: Dynamic AX : Application Integration Framework

What is the AIF and why is important?

• The AIF provides capability to integrate Microsoft Dynamics AX 2012 with other systems inside and outside an organization by enabling the exchange of data through XML. • This formatted XML is referred to as a document, and each document

contains data and business logic. Documents are based on a document class and defined by using Microsoft Dynamics AX. • Further, AX 2012 ships together with standard document services that

support common business processes. As in AX 2009, in AX 2012 we can also customize existing services or create our services. 

Page 4: Dynamic AX : Application Integration Framework

How documents are exchanged?

• In synchronous mode, requests are tightly coupled to responses, which means that the submitter of the request must wait for a response from AIF before proceeding.  In this case, AIF does process the request immediately and then sends a response. • In asynchronous mode, however, requests are placed into a queue, called

the gateway queue. Queued messages are processed at a later time and AIF sends a response when processing is completed. In this case, responses are delayed, but note that large volumes of messages can be processed more efficiently, and message processing can be controlled by changing various configuration settings. Further, the AIF can be used to send and retrieve data into/from AX. 

Page 5: Dynamic AX : Application Integration Framework

AIF Architecture

• AX 2012 exposes its functionality through services that are based on Windows Communication Foundation (WCF) and hosted on Application Object Server (AOS). • External applications and client applications on the local area network

consume AX services by accessing them directly from AOS.

Page 6: Dynamic AX : Application Integration Framework

AIF Architecture

Page 7: Dynamic AX : Application Integration Framework

Integration Overview - AIF Architecture

Page 8: Dynamic AX : Application Integration Framework

Types of Services

AX 2012 supports the following three kinds of services: • Document services are query-based services that can be used to exchange

data with external systems by sending and receiving XML documents. These documents represent business entities, such as customers, vendors, or sales orders.• Custom services can be used by developers to expose any X++ logic, such as

X++ classes and their members, through a service interface.• System services are provided by Microsoft Dynamics AX. System services

include the Query service, the Metadata service, and the User Session service.

Further, system services are not customizable, and they are not mapped to any query or X++ code. For more information about system services, see AIF System Services.

Page 9: Dynamic AX : Application Integration Framework

Integration ports in AX 2012

Each integration port also has a direction. An integration port can be either an inbound integration port or an outbound integration port.• An inbound integration port is a destination for messages

that originate from outside Microsoft Dynamics AX.• An outbound integration port is a destination for messages that originate

from your Microsoft Dynamics AX System. Outbound integration ports are always enhanced ports.• Use for Jobs related operations

• Types• Basic port• Enhanced port

Page 10: Dynamic AX : Application Integration Framework

Layers of Customization in AX

USR ( User layer)CUS (Customer layer)VAR ( Value added resellers)ISV ( Independent service provider)SNL (Solution layer)FPK,GLS,SYS (Microsoft

customizations )

Page 11: Dynamic AX : Application Integration Framework

Lab Session

AX Side

• Create a Class and operations• Create a service and configure its

methods• Incremental Compile• Register Service• Configure Ports Service

Operations

Client Side

• Get WCF service URL from Configuration Port• Consume Service• Create Client, configure

Credentials, Company, etc.• Call service method

Page 12: Dynamic AX : Application Integration Framework

Future Work• Jobs in AX• AIF Logging and Trace• MS Certification (80416A)