473,382 Members | 1,563 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

send/receive XMLDocument via MSMQ

I need to send & receive XML Document Objects via the Message Queue.

We have several applications that insert XML Document Object into the
message queue. This works with no problem. I am trying to write an async
MSMQ listener that will handle these XML Document Objects. No matter what i
seem to try i keep getting various errors.

So, how do i get an XML Document Object back out of the Message Queue.

Thanks

Eric.
--
Just another lost developer.....
Nov 22 '05 #1
1 5382
You need to make sure both sides are using the same message queue formatter -
bonary, xml or activex.

You should be able to send and receive xml documents by storing them in the
Body property of the message. On the receiving side you should be able to use:

XmlDocument doc = (XmlDocument)message.Body;

You could also try setting the BodyType property in the sender.

Unfortunately I do not have MQ installed on my machine, so I cannot provide
concrete examples. Working from memory.

If you continue to have problems, please post the exceptions you are getting
as well. There is also an MQ new group which is useful.

HTH
Dan

"**** KiteOregon ****" wrote:
I need to send & receive XML Document Objects via the Message Queue.

We have several applications that insert XML Document Object into the
message queue. This works with no problem. I am trying to write an async
MSMQ listener that will handle these XML Document Objects. No matter what i
seem to try i keep getting various errors.

So, how do i get an XML Document Object back out of the Message Queue.

Thanks

Eric.
--
Just another lost developer.....

Nov 22 '05 #2

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

Similar topics

5
by: Pete Loveall | last post by:
I have a server application that monitors a private local queue for messages. The message sent to it has a label and a response queue defined. It works correctly when the queue is accessed via...
1
by: **** KiteOregon **** | last post by:
I need to send & receive XML Document Objects via the Message Queue. We have several applications that insert XML Document Object into the message queue. This works with no problem. I am trying...
1
by: Nelson | last post by:
I have a program generate .ZIP files and want to know if there is a way to send these files through MSMQ and how? Thanks.
4
by: Robert Rossney | last post by:
I'm trying to send and receive XmlDocument objects using the System.Messaging.dll functions. The code I've written follows, as best I can tell, the methodology used in the sample code for the...
0
by: Stefan Näsman | last post by:
Hi I have a problem receiving messages from Message Queue when the message is a XMLDocument. When a have received it and tries to read it it says that there is no root element. Do onyone...
2
by: Richard A. Wells | last post by:
All I wanted to do was implement a web service where I'd receive an XML document and return one in response. I'd already figured out how to use XmlReader and XmlWriter classes to do the XML work I...
3
by: Vai2000 | last post by:
hi all, I have a winsvc which reads of messages out an MSMQ. Can someone help with this problem. If my server goes down and comes back up my WinSvc doesn't picks up messages accumulated in the...
8
by: Gerald Bader | last post by:
Hi all! Is there a possibility to send messages from one application to another, never minding if it is a .NET or a COM application? The other application should "listen" whether there are...
1
by: Philip Wagenaar | last post by:
I have a server (tcp/ip) that receives and sends back XML. When I use the following code to send a login xml string my application hangs. I think it is waiting for somekind of notification that...
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.