BizTalk Dynamic Transforms

Execute the below code to perform dynamic transforms within an orchestration. InMessage and OutMessage may be “untyped” messages, i.e. System.Xml.XmlDocument. This means you can easily build orchestrations that use generic types for messages and transforms which allow you to deploy changes to schema and maps in isolation from orchestration.

// Message Assignment Shape
tMapType = System.Type.GetType("Maps.TradingPartnerAFF_to_TradingPartnerBFF, Maps, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d93de1b1c9c3b7ec");
transform (OutMessage) = tMapType(InMessage);

// Expression Shape
Construct OutMessage
{
    tMapType = System.Type.GetType("Maps.TradingPartnerAFF_to_TradingPartnerBFF, Maps, Version=1.0.0.0, Culture=neutral, PublicKeyToken=d93de1b1c9c3b7ec");
    transform (OutMessage) = tMapType(InMessage);
}
Advertisements
This entry was posted in BizTalk Server. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s