Sample Code to Read MSMQ queues

Sample Code to Read MSMQ queues

am 16.07.2007 20:14:06 von Ken

I have created an app in C# that sends xml messages to a client via
MSMQ. I have another app that savesthe xml data sent back but I have
to post each xml in the messages. Could someone give me some sample
code to read each message in a queue and process it. Preferably I
would like C# or classic ASP (which I use to read the xml) so I can
just add it to the current app.
something like

open queue

for each message

read the body data

post the xml in the body of the message to pagethat reads the xml

end the reading

maybe delete the message

close

Re: Sample Code to Read MSMQ queues

am 22.07.2007 11:26:17 von Rob Parsons

Hi Ken,

There is a (not) new forum for IE7 Web Development

http://forums.microsoft.com/MSDN/ShowForum.aspx?ForumID=923& SiteID=1

You may do better posting there.

Regards.
"KEN" wrote in message
news:1184609646.985248.108250@57g2000hsv.googlegroups.com...
>I have created an app in C# that sends xml messages to a client via
> MSMQ. I have another app that savesthe xml data sent back but I have
> to post each xml in the messages. Could someone give me some sample
> code to read each message in a queue and process it. Preferably I
> would like C# or classic ASP (which I use to read the xml) so I can
> just add it to the current app.
> something like
>
> open queue
>
> for each message
>
> read the body data
>
> post the xml in the body of the message to pagethat reads the xml
>
> end the reading
>
> maybe delete the message
>
> close
>