BizTalk Mapper Multiple Schemas

Today I was preparing to do some maintenance work, and while studying the relevant maps and schemas discovered a very unusual looking map—unusual to me anyway. I have included the XML source definition of the map below for reference. The source definition of the map was an aggregation of two schemas. That is, the source definition had two root elements InputMessagePart_0 and InputMessagePart_1 which contained XSD imports of two schemas. The thing that took me by surprise was that the source definition of this particular map was not actually explicitly defined through a "wrapping" schema definition. Instead the actual details of the aggregation was defined and stored in the map definition itself, under the target namespace of:
http://schemas.microsoft.com/BizTalk/2003/aggschema

The only way I could work out how to get the BizTalk development tools to create an aggregated map source/destination definition, was through the orchestration designer in VS.NET. Drop in a transform shape. When configuring the transform shape ensure that the "Create New Map" option is selected, and set its source (and/or destination) to multiple (more than one) messages, click OK. BizTalk will generate the new aggregated map definition. Sweet!


   xmlns:tns="http://schemas.microsoft.com/BizTalk/2003/aggschema"
   xmlns:ns2="http://Net.Bencode.Schema1"
   xmlns:ns1="http://Net.Bencode.Schema2"
   xmlns:b="http://schemas.microsoft.com/BizTalk/2003"
   targetNamespace="http://schemas.microsoft.com/BizTalk/2003/aggschema"
   xmlns:xs="http://www.w3.org/2001/XMLSchema">
 
 
 
  
   
    
     
      
       
      

     

    

    
     
      
       
      

     

    

   

  

 


BizTalk
Posted by: Ben Simmonds
Last revised: 28 Jun, 2011 01:17 PM

Comments

No comments yet. Be the first!

No new comments are allowed on this post.