Home Page › Forums › BizTalk 2004 – BizTalk 2010 › BizTalk Complex Mapping Issue
- This topic has 7 replies, 1 voice, and was last updated 9 years, 1 month ago by
community-content.
-
AuthorPosts
-
-
February 10, 2009 at 1:00 PM #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://….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!!!! [:(] -
February 10, 2009 at 6:25 PM #21685
waiting for reply[:(]
-
February 10, 2009 at 11:09 PM #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-
February 11, 2009 at 6:17 AM #21693
Hay Suman, Can you explain a bit your 2nd point?
-
-
February 11, 2009 at 8:04 AM #21699
In Map, Could use “Inline XSLT Call Template” feature of “Script” functiod.
-
February 11, 2009 at 9:28 AM #21702
How about getting values from Input Xml AND Assigning into Target Xml Using Custom .net Component instead of custom XSLT.
-
February 11, 2009 at 10:59 PM #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>-
February 13, 2009 at 6:56 AM #21725
Thanks greg!!
-
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.