Tomasso Groenendijk talks about developing with Microsoft technology RSS 2.0
# Sunday, November 15, 2009

Dit is een testbericht

Sunday, November 15, 2009 9:12:32 PM (W. Europe Standard Time, UTC+01:00)  #    Comments [0] -

# Thursday, April 23, 2009

In this example I'm going to assign a value in the Header section of an AIF message with BizTalk. An AIF message is defined by two XSD schemas. You have an envelope and a document that defines which tables are mutated in Dynamics. The elements in the Header are part of the Envelope.


XML example of an AIF message.

The example above is a Dynamics AX 4 message. There are some small differences with Dynamics AX 2009 but the principle is the same. The XML documents have for example other namespaces and in action element are other values allowed.


There are more elements in the Header section but in this example I'm only going to set the value in the action element. This element contains information that uniquely identifies the service operation to the system and is a required element. To set the Action value I'm going to use Promoted Properties.

First you have to create a property schema with the elements you want to set.

property schema

After that you import in your BizTalk project the Envelope schema and the schema that defines the Dynamics table that you want to mutate.

envelope schema

Then you have to promote the elements in the envelope schema.


promote Action property

In an Orchestration you can set the value of the promoted field with the "Message Assignment" component.

Assign the value

In the example code beneath you see how the Action property of the "msgSalesOrder" message is set

//Assign Header values
msgSalesOrder(AIFExample.Action)= "createSalesOrder";

Notice that in the orchestration you work with the document that defines the table that you want to mutate. You don't have to worry about the envelope. The Dynamics AX adapter in BizTalk puts the document in the envelope and sends the envelope to Dynamics.
 

For more information about AIF Messages go to MSDN

Microsoft Dynamics AX
AIF Messages
http://msdn.microsoft.com/en-us/library/aa627117(AX.10)..aspx

Thursday, April 23, 2009 2:21:33 PM (W. Europe Daylight Time, UTC+02:00)  #    Comments [0] -
AIF | BizTalk
# Wednesday, April 08, 2009
In this example I'm going to use the File system adapter to exchange data between BizTalk and Microsoft Dynamics AX. The best practice is to use the AIF BizTalk Adapter but for testing purposes it's easier (and faster) to use the File system or the Message Queuing adapter. You have to do some extra steps however because the Application Integration Framework (AIF) expects an envelope around every document. The AIF BizTalk Adapter does this automatically but when you use the File system or the Message Queuing adapter, you have to use an custom Pipeline.
Wednesday, April 08, 2009 5:23:15 PM (W. Europe Daylight Time, UTC+02:00)  #    Comments [0] -
AIF | BizTalk
Navigation
Categories
 
 
Archive
<July 2010>
SunMonTueWedThuFriSat
27282930123
45678910
11121314151617
18192021222324
25262728293031
1234567
About the author

I am a BizTalk consultant at Motion10 and have developed software for more than 12 years. I developed a lot of different types of software like SQL databases, webservices, websites and BizTalk applications. Some in other languages and techniques than Microsoft but at a certain point you have to choose and I like the way how their products can interact with each other and Microsoft has great tools for the developer!
I am 37 years old, live in Rotterdam and have a wife and a kid called Max.

© Copyright 2010
Tomasso Groenendijk
Sign In
Statistics
Total Posts: 3
This Year: 0
This Month: 0
This Week: 0
Comments: 8
email me
All Content © 2010, Tomasso Groenendijk
DasBlog theme 'Business'