BizTalk Server Orchestration - Please help!!! Convert a message to and from a string

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server Orchestration > January 2006 > Please help!!! Convert a message to and from a 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 Please help!!! Convert a message to and from a string
Tommy Wang

2006-01-13, 9:54 pm

The scenario is I got an orchestration which accepts a message, calls a web
service,get the response, construct a return message and sent out. Both the
request and response message are straight-forward, non-multipart messages.
i.e. the request message:
<person><age>10</age></person>

The called web service only accept a string, it should be the string
representation of the requested message. After getting result from the web
service, the response is also a string and has to convert back as a message
and send out.

The question is, I am wonderting is it possible to make the conversion
between a message and its string representation? i.e, the ToString, or
ConverToMessage() method.

Thanks in advance for your help and really appreciate it.

Tommy


Tom Lysholt Hansen

2006-01-13, 9:54 pm

Hi,

You can convert the message to an xml document using the "=" operator, and
then get the string from that.

The other way around, you can load the string (xml formatted I suppose) into
an xml docment and then convert it to a message - again using the "="
operator. This must be done withing a mesage assignment shape.
--
Regards
Tom Lysholt Hansen


"Tommy Wang" wrote:

> The scenario is I got an orchestration which accepts a message, calls a web
> service,get the response, construct a return message and sent out. Both the
> request and response message are straight-forward, non-multipart messages.
> i.e. the request message:
> <person><age>10</age></person>
>
> The called web service only accept a string, it should be the string
> representation of the requested message. After getting result from the web
> service, the response is also a string and has to convert back as a message
> and send out.
>
> The question is, I am wonderting is it possible to make the conversion
> between a message and its string representation? i.e, the ToString, or
> ConverToMessage() method.
>
> Thanks in advance for your help and really appreciate it.
>
> Tommy
>
>
>

Tommy

2006-01-13, 9:54 pm

Thanks, it does helps.

"Tom Lysholt Hansen" wrote:
[vbcol=seagreen]
> Hi,
>
> You can convert the message to an xml document using the "=" operator, and
> then get the string from that.
>
> The other way around, you can load the string (xml formatted I suppose) into
> an xml docment and then convert it to a message - again using the "="
> operator. This must be done withing a mesage assignment shape.
> --
> Regards
> Tom Lysholt Hansen
>
>
> "Tommy Wang" wrote:
>
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com