use mapper to force a large message into a CDATA block in the target schema

Home Page Forums BizTalk 2004 – BizTalk 2010 use mapper to force a large message into a CDATA block in the target schema

Viewing 1 reply thread
  • Author
    Posts
    • #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!

    • #19110

      You can use Using the Mass Copy Functoid for copying multiple nodes.

      • #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?

         

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