locked
Mapping attribute with unbounded values RRS feed

  • Question

  • Hi all

    I have this XML snipet below

    The IdentificationType is an Attribute

    How can I use mapping functoid to extract the value "125434" and map it to a destination element

    I have to reference only the value BUYER_ASSIGNED as the key. I.e mapp IdentificationType -2- destination where value equal to BUYER_ASSIGNED

    <Identification>
         <Gln>7610808000459</Gln>
         <AdditionalPartyIdentificationValue IdentificationType="BUYER_ASSIGNED">125434</AdditionalPartyIdentificationValue>
         <AdditionalPartyIdentificationValue IdentificationType="ExchangedPlatform">925e04c8</AdditionalPartyIdentificationValue>
        </Identification>

    Thanks in Advance


    AKE


    • Edited by Akaschmid Friday, March 9, 2012 3:47 PM
    Friday, March 9, 2012 3:27 PM

Answers

  • Required functoid include
    Functoid = Value Mapping (Flattening)
    Functoid = Equal

    IdentificationType mapped to Equal = ("BUYER_ASSIGNED")
    AdditionalPartyIdentificationValue mapped to Value Mapping (Flattening)
    Equal mapped to  Value Mapping (Flattening)
    Value Mapping (Flattening) mapped to the destination Element

    Regards


    AKE

    • Marked as answer by Akaschmid Friday, March 9, 2012 3:47 PM
    Friday, March 9, 2012 3:47 PM

All replies

  • Required functoid include
    Functoid = Value Mapping (Flattening)
    Functoid = Equal

    IdentificationType mapped to Equal = ("BUYER_ASSIGNED")
    AdditionalPartyIdentificationValue mapped to Value Mapping (Flattening)
    Equal mapped to  Value Mapping (Flattening)
    Value Mapping (Flattening) mapped to the destination Element

    Regards


    AKE

    • Marked as answer by Akaschmid Friday, March 9, 2012 3:47 PM
    Friday, March 9, 2012 3:47 PM
  • Visual Snapshot for reference:


    David Downing... If this answers your question, please Mark as the Answer. If this post is helpful, please vote as helpful.


    Friday, March 9, 2012 3:50 PM
  • David,

    +1.

    Cheers,

    Steef-Jan Wiggers

    MVP & MCTS BizTalk Server 2010

    http://soa-thoughts.blogspot.com/ | @SteefJan


    BizTalk

    Friday, March 9, 2012 4:08 PM
    Moderator
  • Hi David

    your mapping will not generate the needed value = 125434

    you need to mapp AdditionalPartyId to IdentificationType


    AKE

    Friday, March 9, 2012 4:14 PM
  • Thank you AKE... I updated the screenshot to be correct.

    Good Catch!!!

    Thank you also Steef-Jan!


    David Downing... If this answers your question, please Mark as the Answer. If this post is helpful, please vote as helpful.


    Friday, March 9, 2012 5:29 PM