Steve,
How is your data represented now? What do you mean by "as is"?
As Dale stated: If you are using the Message.Body property your choices are
BinaryMessageFormatter, ActiveXMessageFormatter, or XmlMessageFormatter. Or
you could write your own Formatter (by implementing IMessageFormatter) to
get the specific format you want...
Alternatively you could set the Message.BodyStream to a System.IO.Stream
(for example a MemoryStream) instead of setting the Message.Body property.
For details on how the Message.Formatter, Message.Body & Message.BodyStream
interact see the Message.BodyStream topic in the online help.
Hope this helps
Jay
"Steve Lutz" <sl*********@comcast.net> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Hi All,
I am trying to read and write to a message queue. (System.Messaging) I can
read and write to a queue. However, the consummers of the queue messages
are going to be a mixed bag of application, some of which I do not have
control over. When I send a message to the queue, the body of the message is
formatted into XML. I do not want this to happen. I just want to put my
data directly into the body as is, without .NET putting XML wrappers around it.
Anyone know how to accomplish this?
Steve