BizTalk Complex Mapping Issue

Home Page Forums BizTalk 2004 – BizTalk 2010 BizTalk Complex Mapping Issue

Viewing 3 reply threads
  • Author
    Posts
    • #21680

      Hi Masters,

                           I have a Input Message Like Mentioned Below which I am receiving on HTTP Request-Response Port.

       

      <?xml version=”1.0″ ?>
       <Client-resu>
        <Client-id>359777456</Client-id>
       <responseData>
         <transaction>
              <field name=”Version>1.0.0.0</field>
              <field name=”address1>591</field>
             <field name=”address2>568</field>
             <field name=”Score>500</field>
             <field name=”Factor2>906</field>
             <field name=”Factor1>237</field>
             <field name=”Tran-id>1</field>
        </transaction>
        </responseData>
        </Client-resu>
      I have to map to Taghet Schema which is fairly Simple Like
      <Root  xmlns:http://&#8230;.abc>
        <Version>
      <address1>
      <address2>
      <Score>
      <Factor1>
      <Factor2>
      <Tran-id>
      The problem here is when I generated Schema based on the first Xml , Schema Does not have Name values as these are values of Name Field,,
      So My Question is How do map those field from Souce Schema as those are only Values to the target Schema as metioned in second Xml Message.
      Waiting for your response!!!! [:(]

       

    • #21685

      waiting for reply[:(]

    • #21689

      Hi

      You can write the external XSLT file to be aligned to the target XSD file
      (OR)
       write XML serialization for the port where message will be received.

      Regards,
      Suman Kalyan Betal

       

    • #21699

      In Map, Could use “Inline XSLT Call Template” feature of “Script” functiod.

      • #21702

        How about getting values from Input Xml AND Assigning into Target Xml Using Custom .net Component instead of custom XSLT.

      • #21704

        Paste this Xslt into the Inline XSLT Call Template Script functoid:

        <xsl:template match=/>
        <
        xsl:element name=ns0:Root>
        <
        xsl:for-each select=//field>
        <
        xsl:variable name=var:v1 select=@name />
        <
        xsl:element name={$var:v1}>
        <
        xsl:value-of select=. />
        </
        xsl:element>
        </
        xsl:for-each>
        </
        xsl:element>
        </
        xsl:template>

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