?
Solved

How do I pick up a response from an MSMQ?

Posted on 2008-02-12
4
Medium Priority
?
1,467 Views
Last Modified: 2013-11-25
I want to read the body of the message from MSMQ sent from JDE Enterprise One.  I have no idea what XmlMessageFormatter is.  How do I read the unknown formatter message body from MSMQ?  I tried "System.String".  It didn't work.

I am able to get the message from the queue just fine, and read the message id, but how do I read the body/contents of the message.

There is an error message of:
Cannot deserialize the message passed as an argument. Cannot recognize the serialization format.
on line:
strMsg = msg.Body.ToString
Dim strQueuePath As String = ".\private$\mytestqueue"        
        Dim q As New MessageQueue(strQueuePath)
        Dim msg As New System.Messaging.Message
        Dim strFormatter As New System.Messaging.XmlMessageFormatter(New String() {"System.String"})
                
        msg = q.Peek
 
        msg.Formatter = strFormatter
        Dim strMsg As String = ""            
          
        strMsg = msg.Body.ToString

Open in new window

0
Comment
Question by:swoveland21
  • 2
3 Comments
 
LVL 53

Accepted Solution

by:
Dhaest earned 1000 total points
ID: 20900144
Take a look at the following articles. They should help you further

Programming MSMQ in .NET - Part 1
http://www.codeproject.com/KB/dotnet/mgrmsmq.aspx

Using MSMQ in Dot Net Using VB.Net Sending and Receiving Messages Using MSMQ in Dot Net:
http://www.aspfree.com/c/a/ASP.NET/Using-MSMQ-in-Dot-Net-Using-VBNet-Sending-and-Receiving-Messages-Using-MSMQ-in-Dot-Net/
0
 

Author Comment

by:swoveland21
ID: 21121561
Thanks for the post
0
 
LVL 53

Expert Comment

by:Dhaest
ID: 21741709
Did you find the solution with the links ?
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Conducting a customer service survey used to be as straightforward as sending a template email out using checkboxes and numerical rating systems to measure satisfaction.
In today’s time where quality is an essential factor all over the world, software testing and effective QA (Quality Assurance) is an all-important element for any business to ensure less risk for an end product. A good software testing company deliv…
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

600 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question