BizTalk Server General - Read msmq message written by BizTalk

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > June 2005 > Read msmq message written by BizTalk





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 Read msmq message written by BizTalk
Drew

2005-06-09, 5:51 pm

I'm trying to figure out how to read a message written to a queue by BizTalk.
I can not figure out the format to use.

In Biztalk 2002, you would use ActiveXFormatter. I've tried this with 2004
and the message is unreadable.

Same question for the inverse, what format to use from an application
writing to a queue that BizTalk would pick up.

Anybody got this to work?

Thanks,
drew

Tomas Restrepo \(MVP\)

2005-06-09, 8:48 pm

Drew,
> I'm trying to figure out how to read a message written to a queue by
> BizTalk.
> I can not figure out the format to use.
>
> In Biztalk 2002, you would use ActiveXFormatter. I've tried this with
> 2004
> and the message is unreadable.
>
> Same question for the inverse, what format to use from an application
> writing to a queue that BizTalk would pick up.
>
> Anybody got this to work?


You'll need to use an StreamReader created on top of the message's
BodyStream property ( you don't need a formatter for this), or just read
from the stream itself directly.

The trick here usually is knowing the encoding the message was sent in,
which is controlled by how the send pipeline was configured (if you use the
default I believe it uses utf-8, I believe, but I don't remember for sure).


--
Tomas Restrepo
tomasr@mvps.org
http://www.winterdom.com/


Drew

2005-06-28, 5:52 pm

Sorry for the delay in my response, I've been testing this out on the inverse
side.

What about writing to the queue for BizTalk to pick up, should you use the
activeXformatter or not?
I've used both with the XMLTransmit pipeline, and neither work. Do you have
to write a custom pipeline, and if so what would be in it?


"Tomas Restrepo (MVP)" wrote:

> Drew,
>
> You'll need to use an StreamReader created on top of the message's
> BodyStream property ( you don't need a formatter for this), or just read
> from the stream itself directly.
>
> The trick here usually is knowing the encoding the message was sent in,
> which is controlled by how the send pipeline was configured (if you use the
> default I believe it uses utf-8, I believe, but I don't remember for sure).
>
>
> --
> Tomas Restrepo
> tomasr@mvps.org
> http://www.winterdom.com/
>
>
>

Drew

2005-06-28, 5:52 pm

Disregard, I found the answer in a previous post.

I used the bodystream instead of writing to the body.

Thanks,
Drew

"Drew" wrote:
[vbcol=seagreen]
> Sorry for the delay in my response, I've been testing this out on the inverse
> side.
>
> What about writing to the queue for BizTalk to pick up, should you use the
> activeXformatter or not?
> I've used both with the XMLTransmit pipeline, and neither work. Do you have
> to write a custom pipeline, and if so what would be in it?
>
>
> "Tomas Restrepo (MVP)" wrote:
>
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com