BizTalk Server General - How to map a node tree into a string field

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > January 2005 > How to map a node tree into a string field





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author How to map a node tree into a string field
Deepak

2005-01-25, 5:50 pm

I'm assuming you are using Biztalk 2004.

Check out the SDK Sample under Program Files\Microsoft
BizTalk Server 2004\SDK\Samples\XmlTools\ExtendingMappe
r,
You can override the mapper's XSLt with your own inside
the mapper using the Custom XSLT Scripting functoid.

Deepak
http://deepakl.blogspot.com

>-----Original Message-----
>I have a message which I want to copy the xml string of

into a string field
>on another message within a transform map. I'm sure

there is an easy way to
>do this but I'm having a hard time finding out. Anyone

else done this before?
>
>Thanks
>Matt
>.
>

MattBell

2005-01-25, 5:50 pm

Hey Thanks for the response,
After re-reading my original post, I'm not sure that I was very clear,
really what I want to do is somehow get the OuterXml property of a message is
that possible at all? I almost able to do so with a message assignment
shape, but I had to use promoted properties which apparently only allow 256
characters, which barely even gets the schema definition much less the rest
of the Xml Document.

Basically all I need to do is get a string which represents the Xml of a
message to store in a database column.

"Deepak" wrote:

> I'm assuming you are using Biztalk 2004.
>
> Check out the SDK Sample under Program Files\Microsoft
> BizTalk Server 2004\SDK\Samples\XmlTools\ExtendingMappe
r,
> You can override the mapper's XSLt with your own inside
> the mapper using the Custom XSLT Scripting functoid.
>
> Deepak
> http://deepakl.blogspot.com
>
> into a string field
> there is an easy way to
> else done this before?
>

Deepak

2005-01-26, 5:54 pm

Hey,

I get you now. You can do this easily in an Expression
shape.
For example, msg_In is your incoming message and you want
to strip the xml, the easiest thing to do is as follows

1. Declare an XmlDocument Variable in variables section
in the Orchestration (say named xmlDoc)

2. Declare another string variable in variables section
in the Orchestratio (say strmsgContent )

2. In the Expression shapre write the following code

xmlDoc = new System.Xml.XmlDocument();
xmlDoc = msg_In;
strmsgContent = xmlDoc.OuterXml;
xmlDoc = null;

You should get the string in strmsgContent. There might
be better/efficient ways to do, but this is the simplest
way I could think of.

Deepak
http://deepakl.blogspot.com

>-----Original Message-----
>Hey Thanks for the response,
>After re-reading my original post, I'm not sure that I

was very clear,
>really what I want to do is somehow get the OuterXml

property of a message is
>that possible at all? I almost able to do so with a

message assignment
>shape, but I had to use promoted properties which

apparently only allow 256
>characters, which barely even gets the schema definition

much less the rest
>of the Xml Document.
>
>Basically all I need to do is get a string which

represents the Xml of a
>message to store in a database column.
>
>"Deepak" wrote:
>
\SDK\Samples\XmlTools\ExtendingMapper,[v
bcol=seagreen]
inside[vbcol=seagreen]
of[vbcol=seagreen]
Anyone[vbcol=seagreen]
>.
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com