Mapping abstract elements in BizTalk

Home Page › Forums › BizTalk 2004 – BizTalk 2010 › Mapping abstract elements in BizTalk

Viewing 0 reply threads
  • Author
    Posts
    • #23778

      Hello,

      I have a problem mapping abstract data types in BizTalk Server, it seems that the mapper does not care about the type attribute of the abstract data type. Anyone bumped into this?

      Scenario:
      I have several complexType ‘account’ types that inherit from a certain account type by abstraction. The inherited type only consisis of the element AccountNumber of type string. The instance and schema look something like this:

      <span style="font-family:Verdana"><font face=Verdana><pre lang=x-xml>Instance:
      <ns0:RecipientAccount xsi:type="ns0:BankAccountType" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <ns0:AccountNumber>2135465668</ns0:AccountNumber>
      
      XML presentation of XSD:
      <xs:complexType name="AccountType" abstract="true"><br/><xs:sequence>
      <xs:element name="AccountNumber" type="AccountNumberType" />
      </xs:sequence>
      </xs:complexType>
      
      <xs:complexType name="BankAccountType">
      <xs:complexContent mixed="false">
      <xs:extension base="AccountType" />
      </xs:complexContent>
      </xs:complexType>
      
      <xs:complexType name="StockAccountType">
      <xs:complexContent mixed="false">
      <xs:extension base="AccountType" />
      </xs:complexContent>
      </xs:complexType>
      

       

      
      

      I would like the BizTalk mapper to realize the ‘type’ attribute of the account element and populate the right account type in the destination. But this seems impossible without inline XSLT. The mapper allows linking of each account type, hence populating account number for all account types since they all have it! Is inline XSLT the only solution to find the right type?

      I am using BizTalk Server 2006 R2.

      Regards,
      Tara

Viewing 0 reply threads
  • The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.