472,355 Members | 1,941 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,355 software developers and data experts.

Sample Code to Read MSMQ queues

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

Jul 16 '07 #1
1 5410
Hi Ken,

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

http://forums.microsoft.com/MSDN/Sho...D=923&SiteID=1

You may do better posting there.

Regards.
"KEN" <ke********@gmail.comwrote in message
news:11**********************@57g2000hsv.googlegro ups.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

Jul 22 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: dangquochung | last post by:
How can i put my public message queues in my own folder under Message Queuing folder rather than in the predefined Public Queues?
0
by: kd | last post by:
Hi All, Can Windows message queues be used to communicate between 2 applications running on the same computer? I am not sure whether this is possible, if it is possible how can this be compared...
3
by: Claudia | last post by:
Hi all... I'm working on a project that uses MSMQ as its core for inter-process communication. At the moment there is a single process that listens for inbound TCP-based messages on a socket,...
5
by: Jim in Arizona | last post by:
I realize that by design, web client/server interaction is disconnected. I'm wondering if there is a way that when a client/server interaction occurs, if there is a way to start a time on the web...
2
by: SammyBar | last post by:
Hi all, I'm trying to send a message from ASP.NET to another PC by using MSMQ. I created my ASP.NET project by using Visual Studio 2005 but I initially set the project to be located on the File...
0
by: =?Utf-8?B?c3VqaXRo?= | last post by:
i created a windows service which uses MSMQ(message queueing).it uses private queues.the user "Everyone" has given full permission in the private queues through install program.when i try to start...
1
by: Vai2000 | last post by:
Hi All, I have currently 3 MSMQ and 3 win svc which poll on them. I want to consolidate them into 1 svc, but running into event notification errors. What shud be the best way to accomplish it? also...
1
jackb
by: jackb | last post by:
Structure of my application is: 1. Message is dispatched to an application 2. That application puts the message in a private queue 3. Another application reads messages from this queue and...
0
jackb
by: jackb | last post by:
Hello there. I have setup triggers on MSMQ private queues I wanted to trace MSMQ Trigger activities for the whole day I tried using trigmon.exe but it shows trace log from the time...
2
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and efficiency. While initially associated with cryptocurrencies...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was proposed, which integrated multiple engines and...
1
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. header("Location:".$urlback); Is this the right layout the...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and credentials and received a successful connection...
0
Oralloy
by: Oralloy | last post by:
Hello Folks, I am trying to hook up a CPU which I designed using SystemC to I/O pins on an FPGA. My problem (spelled failure) is with the synthesis of my design into a bitstream, not the C++...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand. Background colors can be used to highlight important...
0
by: Rahul1995seven | last post by:
Introduction: In the realm of programming languages, Python has emerged as a powerhouse. With its simplicity, versatility, and robustness, Python has gained popularity among beginners and experts...
0
by: Ricardo de Mila | last post by:
Dear people, good afternoon... I have a form in msAccess with lots of controls and a specific routine must be triggered if the mouse_down event happens in any control. Than I need to discover what...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.