473,395 Members | 1,974 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,395 software developers and data experts.

MSMQ body format issue.

I wrote an application that puts in a message into MSMQ using C++ and
MFC. If I try to put a message called 'sample' I see that the body of
the
message in MSMQ would be set to: 's.a.m.p.l.e'.

On the other hand I have a C# application that reads the same message
queue and it expects the body format to be:
'<?xml version="1.0"? >..<string>sample</string>'
Because of this body format incompatibility, I am having trouble with
C# application not being able to read the C++ application's message.
Can someone suggest on how to modify the C#/C++ application to resolve
this issue.

Thanks,
IdleBrain

Oct 22 '07 #1
4 6253

Follow this thread, and you're figure out some formatter stuff.
http://groups.google.com/group/micro...5ce88a50c31d19

"IdleBrain" <in**************@yahoo.comwrote in message
news:11*********************@v23g2000prn.googlegro ups.com...
>I wrote an application that puts in a message into MSMQ using C++ and
MFC. If I try to put a message called 'sample' I see that the body of
the
message in MSMQ would be set to: 's.a.m.p.l.e'.

On the other hand I have a C# application that reads the same message
queue and it expects the body format to be:
'<?xml version="1.0"? >..<string>sample</string>'
Because of this body format incompatibility, I am having trouble with
C# application not being able to read the C++ application's message.
Can someone suggest on how to modify the C#/C++ application to resolve
this issue.

Thanks,
IdleBrain

Oct 22 '07 #2
"IdleBrain" <in**************@yahoo.comwrote in message
news:11*********************@v23g2000prn.googlegro ups.com...
>I wrote an application that puts in a message into MSMQ using C++ and
MFC. If I try to put a message called 'sample' I see that the body of
the
message in MSMQ would be set to: 's.a.m.p.l.e'.

On the other hand I have a C# application that reads the same message
queue and it expects the body format to be:
'<?xml version="1.0"? >..<string>sample</string>'
Because of this body format incompatibility, I am having trouble with
C# application not being able to read the C++ application's message.
Can someone suggest on how to modify the C#/C++ application to resolve
this issue.
You are using different Formatters. Set the MessageQueue.Formatter property
to be the same in both apps.

Oct 22 '07 #3
Thanks for your help guys.

I started using the ActiveXMessageFormatter and XMLMessageFormatter in
my C# application to read either of the message queue formats and
donot have a problem now.
Oct 23 '07 #4


Thanks for posting the resolution.

"IdleBrain" <in**************@yahoo.comwrote in message
news:11**********************@i13g2000prf.googlegr oups.com...
Thanks for your help guys.

I started using the ActiveXMessageFormatter and XMLMessageFormatter in
my C# application to read either of the message queue formats and
donot have a problem now.


Oct 23 '07 #5

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

Similar topics

0
by: Andrew Gordon | last post by:
I'm investigating getting Microsoft Navision to do stuff from a Python script. The recommended way seems to be to use message queues (MSMQ). I can get Navision to send a message to itself fine. I...
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: Lee Zeitz | last post by:
Hello, I have a need to read messages from MSMQ (on the order of 350,000 messages per day) that have a body that is text-only (not in XML format). There are 3 message formats to select from...
2
by: Buddhi | last post by:
Hi I am developing a windows service which access queue. When i add the queue to my service and add a installer and install using the Installutil exe. it gives a error saying that the service...
14
by: Webbee | last post by:
I have a service built that is trying to read messages from a private que. When this tries to happen I get this error.... A workgroup installation computer does not support the operation From...
1
by: Richard Atkinson | last post by:
I would appreciate help on the Microsoft Message Queue. Basically I would like to Serialize an entire class into a message queue and then reinstantiate the class in another application from the...
3
by: yonirabin | last post by:
Hello, I am building a system in C# 2.0 using the master - worker design pattern The system is supposed to work as follows: 1. The Master sends Command objects to several workers 2. All Commands...
0
by: ASPnewb1 | last post by:
Hello, I have a question about MSMQ as I'm new to using this system in the .NET framework. Here is my following application that I run 2 instances of to test the ability to communicate...
0
by: lgrella | last post by:
I am using MSMQ and am using the triggers. What I am doing is running a web service, and placing parameters to a call to a 3rd party program in the body of the message object of a queue. I want the...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.