Home Page › Forums › BizTalk 2004 – BizTalk 2010 › use mapper to force a large message into a CDATA block in the target schema
- This topic has 2 replies, 1 voice, and was last updated 9 years, 1 month ago by
community-content.
-
AuthorPosts
-
-
March 24, 2008 at 9:39 AM #19108
I’ve got a large message with multiple nodes as the source schema
I need to insert the source schema into one target schema node as a CDATA block…
Which functoid would I need to use to make this happen?
Thanks in advance!
-
March 25, 2008 at 4:26 AM #19110
You can use Using the Mass Copy Functoid for copying multiple nodes.
-
March 26, 2008 at 1:12 PM #19132
Thanks. I did this, but I need the message to look like:
<?xml version=”1.0″?>
<IBRequest>
<From>
<RequestingNode>BLABLA</RequestingNode>
<OrigTimeStamp>2008-03-06T03:11:59.131-0200</OrigTimeStamp>
<Password>PWD</Password>
</From>
<MessageName>UPD</MessageName>
<MessageType>async</MessageType>
<ContentSections>
<ContentSection>
<Headers>
<version>VERSION_1</version>
</Headers>
<Data><![CDATA[<?xml version=’1.0′?><Messages>
<Message>bla</Message>
</Messages>
]]></Data>
</ContentSection>
</ContentSections>
</IBRequest>and it currently looks like:
<?xml version=”1.0″?>
<IBRequest>
<From>
<RequestingNode>BLABLA</RequestingNode>
<OrigTimeStamp>2008-03-06T03:11:59.131-0200</OrigTimeStamp>
<Password>PWD</Password>
</From>
<MessageName>UPD</MessageName>
<MessageType>async</MessageType>
<ContentSections>
<ContentSection>
<Headers>
<version>VERSION_1</version>
</Headers>
<Data><Messages>
<Message>bla</Message>
</Messages>
</Data>
</ContentSection>
</ContentSections>
</IBRequest>I need to somehow wrap the xml in the <Data> node with the CDATA & retain the xml declaration… I am thinking of using a message assignment to pull all contents of the <Data> node and changethe datatype to string, prepend & append the required tags, then use xpath to set the value…
any ideas on how to do this? or if I am on the right path?
-
-
-
AuthorPosts
- The forum ‘BizTalk 2004 – BizTalk 2010’ is closed to new topics and replies.