Wednesday, 19 December 2012

Dynamic Mapping - Biztalk



For this exercise, I am building an orchestration which identifies the Company   and loads the corresponding map and sends the message to the intended recipient after the desired transformation. For this example, I have two Company  A and B.Orchestration identifies company based on ID .
Then transform message dynamically .

Step 1:Create Input Schema OrderDetails.Xsd

Input Schema





















Step 2:Create Two Destination Schema CompanyA_Order.xsd and CompanyB_Order.xsd












Step 3:Create Two Map for Company A and B ,

  • OrderDetails_CompanyAOrder.btm and 
  • OrderDetails_CompanyBOrder.btm





 




 




Step 4:Create Orchestration for Dynamic Mapping 

Expression Used for Dynamic Mapping 

ExpressionShape
if(Message_1(Company.Demo.DynamicMapping.PropertySchema.Id)=="A")
{
MapType = System.Type.GetType("Company.Demo.DynamicMapping.OrderDetails_CompanyAOrder,Company.Demo.DynamicMapping, Version=1.0.0.0, Culture=neutral,PublicKeyToken=884e2210690b4615");
}
else
{
MapType = System.Type.GetType("Company.Demo.DynamicMapping.OrderDetails_CompanyBOrder,Company.Demo.DynamicMapping, Version=1.0.0.0, Culture=neutral,PublicKeyToken=884e2210690b4615");
}

MessageAssignMentShape

transform (Message_2) = MapType(Message_1);







2 comments:

  1. Biztalk Admin Online Training
    Click Here For Enquiry
    Overview
    What is Business Process?
    Need to Integrate
    What is Integration?
    Challenges without Integration
    Challenges in Business Integration
    BizTalk Server
    Other Products available in Market
    Comparison of BizTalk with Tibco, Web methods & SAP PI
    Comparison of BizTalk with SSIS and WPF.
    Call Us +919000444287
    http://www.21cssindia.com/courses/biztalk-admin-online-training-220.html

    ReplyDelete
  2. Biztalk Server Online Training, ONLINE TRAINING – IT SUPPORT – CORPORATE TRAINING http://www.21cssindia.com/courses/biztalk-server-online-training-213.html The 21st Century Software Solutions of India offers one of the Largest conglomerations of Software Training, IT Support, Corporate Training institute in India - +919000444287 - +917386622889 - Visakhapatnam,Hyderabad Biztalk Server Online Training, Biztalk Server Training, Biztalk Server, Biztalk Server Online Training| Biztalk Server Training| Biztalk Server| "Courses at 21st Century Software Solutions
    Talend Online Training -Hyperion Online Training - IBM Unica Online Training - Siteminder Online Training - SharePoint Online Training - Informatica Online Training - SalesForce Online Training - Many more… | Call Us +917386622889 - +919000444287 - contact@21cssindia.com
    Visit: http://www.21cssindia.com/courses.html"

    ReplyDelete