The Application Integration Framework (AIF) uses a set of services to asynchronously process inbound and outbound documents:

  • AifGatewayReceiveService - Communicates with the file or msmq adapter and receives messages from an inbound location (e.g., Inbound folder) and bringing them into the AIF queue
  • AifInboundProcessingService - Takes the inbound messages from the AIF queue or the BizTalk adapter and then hands them off to the correct Microsoft Dynamics AX document class (referred to as an Axd class) and processes the business logic
  • AifOutboundProcessingService - Bundles an outbound document from Microsoft Dynamics AX with the document endpoint and channel information, and creates a fully-formed AIF message.  The service then sends these messages to the AIFGatewaySendService or the BizTalk adapter
  • AifGatewaySendService - Communicates with the file or msmq adapter and writes the messages to an outbound location (e.g., an Outbound folder) where the external party can pick up the message

The use of these services are determined by which AIF adapter you are using.  

Service

File system adapter

MSMQ adapter

BizTalk adapter

AIFGatewayReceiveService

X

X

 

AIFInboundProcessingService

X

X

X

AIFOutboundProcessingService

X

X

X

AIFGatewaySendService

X

X

 

As you can see from this chart, there is no need for you to run and schedule the AIFGateway services if you are using the BizTalk adapter.    If you are using the BizTalk adapter and only bringing in inbound documents, then you would only have to run the AifInboundProcessingService as that service will bring in the document from BizTalk, process the business logic in AX, and produce the response message if required.   The use of the AifOutboundProcessingService is only needed if you are producing outbound documents such as sending out Trade Agreements, etc.