Please help!!! Convert a message to and from a string
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server Orchestration > Please help!!! Convert a message to and from a string




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Please help!!! Convert a message to and from a string  
Tommy Wang


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-14-06 02:54 AM

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







[ Post a follow-up to this message ]



    RE: Please help!!! Convert a message to and from a string  
Tom Lysholt Hansen


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-14-06 02:54 AM

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 we
b
> service,get the response, construct a return message and sent out. Both th
e
> 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 messag
e
> 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
>
>
>





[ Post a follow-up to this message ]



    RE: Please help!!! Convert a message to and from a string  
Tommy


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-14-06 02:54 AM

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) in
to
> 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:
> 





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:05 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register