What's so special about the XmlDocument Message-Type?
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 > What's so special about the XmlDocument Message-Type?




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

    What's so special about the XmlDocument Message-Type?  
TToni


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


 
07-01-05 07:47 AM

Hi all!

I'm using Messages to store some external streams I receive during an
orchestration. I found no way to directly assign the Stream to the Message i
n
an orchestration shape, so I'm using an assembly like this:
void AssignMessage(XLANGMessage m, Stream s) {
m[0].LoadFrom(s);
m.Dispose();
}
and call it in a MessageConstruct/Assignment-Shape.

Now this works fine as long as the MessageType is XmlDocument (or even some
Schema-based type). Setting the MessageType to something else (e.g. Stream,
String, Object) always results in some sort of Exception.

I'm a bit uncomfortable with the XmlDocument-thing, because the Stream may
actually consist of non-XML-data, however BizTalk seems fine with that. I ca
n
get the Stream back via RetrieveAs(), it survives persistence points and
dehydrations.

I just wonder why the XmlDocument seems to be so preferred?

Thanks for some enlightenment on that issue.

TToni





[ Post a follow-up to this message ]



    Re: What's so special about the XmlDocument Message-Type?  
Michel Prévost


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


 
07-04-05 10:53 PM

Using XmlDocument as message type works with non-XML messages. We used it to
process binary files through orchestrations

"TToni" <TToni@discussions.microsoft.com> wrote in message
news:FC58781C-6241-4625-A136-68223E21671B@microsoft.com...
> Hi all!
>
> I'm using Messages to store some external streams I receive during an
> orchestration. I found no way to directly assign the Stream to the Message
> in
> an orchestration shape, so I'm using an assembly like this:
> void AssignMessage(XLANGMessage m, Stream s) {
>    m[0].LoadFrom(s);
>    m.Dispose();
> }
> and call it in a MessageConstruct/Assignment-Shape.
>
> Now this works fine as long as the MessageType is XmlDocument (or even
> some
> Schema-based type). Setting the MessageType to something else (e.g.
> Stream,
> String, Object) always results in some sort of Exception.
>
> I'm a bit uncomfortable with the XmlDocument-thing, because the Stream may
> actually consist of non-XML-data, however BizTalk seems fine with that. I
> can
> get the Stream back via RetrieveAs(), it survives persistence points and
> dehydrations.
>
> I just wonder why the XmlDocument seems to be so preferred?
>
> Thanks for some enlightenment on that issue.
>
> TToni







[ Post a follow-up to this message ]



    Re: What's so special about the XmlDocument Message-Type?  
TToni


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


 
07-05-05 07:48 AM

Yes, I noted that. The question is: Why does it work? And why does it work
only with XmlDocument? It seems like some kind of undocumented feature to me
,
which makes me slightly nervous when I'm working in a live enterprise
environment.


"Michel Prévost" wrote:

> Using XmlDocument as message type works with non-XML messages. We used it 
to
> process binary files through orchestrations
>






[ Post a follow-up to this message ]



    Re: What's so special about the XmlDocument Message-Type?  
Michel Prévost


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


 
07-05-05 10:51 PM

Not sure, but I think it just wraps the message into an envelope (like it
does for other messages), probably transforming binary messages into base64


"TToni" <TToni@discussions.microsoft.com> wrote in message
news:AA977037-2E5B-4944-8421-5495D9400202@microsoft.com...
> Yes, I noted that. The question is: Why does it work? And why does it work
> only with XmlDocument? It seems like some kind of undocumented feature to
> me,
> which makes me slightly nervous when I'm working in a live enterprise
> environment.
>
>
> "Michel Prévost" wrote:
> 
>







[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:05 PM.      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