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 ]
|