Example of Outbound XML Message
Important
This content is archived and is not being updated. For the latest documentation, see Microsoft Dynamics 365 product documentation. For the latest release plans, see Dynamics 365 and Microsoft Power Platform release plans.
Applies To: Microsoft Dynamics AX 2012 R2, Microsoft Dynamics AX 2012 Feature Pack, Microsoft Dynamics AX 2012
When Application Integration Framework (AIF) sends a document out of Microsoft Dynamics AX, the result can be an XML message that is transferred by using the outbound integration port. For example, when you use the file system adapter on an outbound integration port to send an AxdLedgerJournal document, the system creates an XML file in the outbound directory that you created. Depending on the fields that you have enabled for the document on the outbound port, the final XML message could resemble the following example.
<?xml version="1.0" encoding="UTF-8" ?>
<Envelope xmlns="https://schemas.microsoft.com/dynamics/2011/01/
documents/Message">
<Header>
<MessageId>{55240EEC-0057-4B82-A144-89F107A26F80}</MessageId>
<Action>https://schemas.microsoft.com/dynamics/2008/01/services/LedgerJournalService/read</Action>
<RequestMessageId>{7947E0F8-B07D-4344-8632-571C46129A54}<RequestMessageId />
</Header>
<Body>
<MessageParts xmlns="https://schemas.microsoft.com/dynamics/2011/01/documents/Message">
<LedgerJournal xmlns="https://schemas.microsoft.com/dynamics/2008/01/documents/LedgerJournal">
<DocPurpose>Original</DocPurpose>
<SenderId>DAT</SenderId>
<LedgerJournalTable class="entity">
<_DocumentHash>d4753aeeff82274cfc769cf8124b4d5a</_DocumentHash>
<RecId>5637144633</RecId>
<RecVersion>1</RecVersion>
<Name>Day1</Name>
<JournalNum>000043_003</JournalNum>
<JournalType>Daily</JournalType>
<LedgerJournalTrans class="entity">
<AccountType>Ledger</AccountType>
</LedgerJournalTrans>
</LedgerJournalTable>
</LedgerJournal>
</Body>
</Envelope>
Walkthrough: Deploying the Document Service in an Outbound Exchange