BizTalk Server Framework - How to convert a message to string?

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Framework > October 2004 > How to convert a message to string?





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 convert a message to string?
Cindy Liu

2004-10-26, 5:48 pm

Hi,

I receive a Biztalk message and want to parse that xml string. Is there
anyway I can convert the whole message to a string and load it in XmlDocument?

Thanks in advance!!!
Cindy
Greg Forsythe

2004-10-27, 7:46 am

Are you coding a pipeline component or an orchestration?
I will assume an orchestration.
The Biztalk message is interchangeable with an XmlDocument.
Create an orchestration variable (MyXmlDocument) of type
System.Xml.XmlDocument
In an expression shape

MyXmlDocument = BiztalkMessage;

Depending on what you wish to do, you may find the xpath() function useful
for direct access to the BiztalkMessage rather than creating the
XmlDocument.


Greg

"Cindy Liu" <CindyLiu@discussions.microsoft.com> wrote in message
news:C51EE0FC-3B89-4563-9F53-B683998CB968@microsoft.com...
> Hi,
>
> I receive a Biztalk message and want to parse that xml string. Is there
> anyway I can convert the whole message to a string and load it in

XmlDocument?
>
> Thanks in advance!!!
> Cindy



Cindy Liu

2004-10-27, 5:49 pm

I'm coding an orchestration. It is very helpful.

Thanks,
Cindy

"Greg Forsythe" wrote:

> Are you coding a pipeline component or an orchestration?
> I will assume an orchestration.
> The Biztalk message is interchangeable with an XmlDocument.
> Create an orchestration variable (MyXmlDocument) of type
> System.Xml.XmlDocument
> In an expression shape
>
> MyXmlDocument = BiztalkMessage;
>
> Depending on what you wish to do, you may find the xpath() function useful
> for direct access to the BiztalkMessage rather than creating the
> XmlDocument.
>
>
> Greg
>
> "Cindy Liu" <CindyLiu@discussions.microsoft.com> wrote in message
> news:C51EE0FC-3B89-4563-9F53-B683998CB968@microsoft.com...
> XmlDocument?
>
>
>

Cindy Liu

2004-10-27, 5:49 pm

Hi Greg,

Where can I find the document on how to use xpath() function?

Thanks,
Cindy

"Greg Forsythe" wrote:

> Are you coding a pipeline component or an orchestration?
> I will assume an orchestration.
> The Biztalk message is interchangeable with an XmlDocument.
> Create an orchestration variable (MyXmlDocument) of type
> System.Xml.XmlDocument
> In an expression shape
>
> MyXmlDocument = BiztalkMessage;
>
> Depending on what you wish to do, you may find the xpath() function useful
> for direct access to the BiztalkMessage rather than creating the
> XmlDocument.
>
>
> Greg
>
> "Cindy Liu" <CindyLiu@discussions.microsoft.com> wrote in message
> news:C51EE0FC-3B89-4563-9F53-B683998CB968@microsoft.com...
> XmlDocument?
>
>
>

Hugo Rodger-Brown

2004-10-28, 2:47 am

Cindy - try these:

http://geekswithblogs.net/sthomas/a...0/25/13269.aspx
http://msdn.microsoft.com/library/d...g_orch_doho.asp
http://blogs.msdn.com/darrenj/archi.../30/222614.aspx

Hugo

http://hugo.rodger-brown.com
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com