Geeks With Blogs
Koushal Deshpande kd

BizTalk's strength is in message transformation without hassle using maps. You dont have to bother about actual transformation done in xsl and can just start linking up elements from source and destinations to transform message. It is easy to create a map but it is difficult to decide and execute a map dynamically.

Not untill I came to know about a way to transform a message dynamically i.e. calling a map runtime. I had used dotnet code to call maps dynamically but again that was not quite handy. Here I am listing a few steps which will walk you through:

  1. Create a received message say msgIN
  2. Create a out message say msgOUT
  3. Create a variable say mapName of System.String type
  4. Create a variable say mapType of System.Type type
  5. Create a map with In_To_Out which will map your messages.

Now you will have to assign map name to the variable. This name has to be fully qualified name of map. e.g. BizTalk.Poc.CallRules.CreditResponseMap, BizTalk.Poc.CallRules, Version=1.0.0.0, Culture=neutral, PublicKeyToken=6fbea855e353a1f3

Now create a type variable of this map mapType = System.Type.GetType(mapName).

We will execute this map to create message like: transform(msgOUT) = mapType(msgIN).

This statement shoyuld be within message assignment shape. We can replace name of map based on condition in our code and that will execute map dynamically.

Easy, isn't it? :-)

 

Posted on Wednesday, January 15, 2014 12:10 PM BizTalk 2010 , BizTalk , Map | Back to top


Comments on this post: Calling MAPs Dynamically

# re: Calling MAPs Dynamically
Requesting Gravatar...
I will mention your blog at my site supreme dissertations. There are so many interesting articles!
Left by Layla Davis on Jun 29, 2017 10:23 PM

# re: Calling MAPs Dynamically
Requesting Gravatar...
As you said it is difficult to decide and execute map dynamically and I too have tried it many times. I am fed up with working on this and I came here to check for the solution. I am very much satisfied after going through this article and thank you so much for sharing them.
prefabricated house
Left by Merlin John on Jul 05, 2017 7:32 PM

# re: Calling MAPs Dynamically
Requesting Gravatar...
Have a look at Apology Letter and Apology Letter for Customer to get some free apology letters.
Left by aryan on Aug 18, 2017 4:36 PM

# re: Calling MAPs Dynamically
Requesting Gravatar...
SBI Hrms, State Bank of India & HRMS SBI Portal Login specially is one of the most popular banks of our country
sbi hmrs
Left by rekhasree on Sep 01, 2017 5:15 PM

# re: Calling MAPs Dynamically
Requesting Gravatar...
I tried to do it on my own but this is very hard for me to understand. I don't know what to do. Can you guys help me a little bit with this? Hotels near kottayam
Left by Evanthia on Dec 12, 2017 3:30 PM

# re: Calling MAPs Dynamically
Requesting Gravatar...
Thanks for sharing. Malayalam recipes
Left by Harry on Feb 07, 2018 12:08 PM

# re: Calling MAPs Dynamically
Requesting Gravatar...
We are really glad to know about the proposed slate for 2017-18 FSC board of directors. You have done a good job by sharing the complete list of elected members through this post. Wishing all the very best for all the elected members for the coming years. hidden treasures los angeles
Left by lionel on Mar 12, 2018 2:58 PM

Your comment:
 (will show your gravatar)


Copyright © Koushal Deshpande | Powered by: GeeksWithBlogs.net