Tuesday, January 03, 2006

Loading Dynamic Maps in Biztalk Orchestrations

I had a situation in which I had to map into a single schema when messages are send by different parties . Normally this would be done at the recieve port level and document is standardized , but one drawback of this approach is exception handling which is a pain in these situations . It would be great if we can dynamically load a map inside the orchestration and then normalize and we can have or exception handling code written there. I came across and excellent post from Steven Thomas on the same topic .

Inside the expression shape /Message Assignment Shape

objMapType = System.Type.GetType("Map Name ,( Full strong Name of Assembly)");

construct Output_Xml

transform (Output_Xml) = objMapType (Input_Xml);