P
Peter Hurford
Hi,
First time using msmq in .net environment and I think I am missing
something obvious.
I am using the System.Messaging classes Message & MessageQueue to send
a message.
I want to send a plain-text message (e.g. "Test"), but by default the
Message class serializes it to xml (e.g. "<string>Test</string>"). This
is a problem for me, as the application which will be picking messages
off the queue is a third-party application which requires messages in a
specific format. I have no flexibility to change this.
I've looked briefly at IMessageFormatter, but surely I don't have to
write my own formatter to send *plain-text* messages? I've looked at
BodyStream, but again, surely I don't have to mangle my string into a
byte array simply to send it down the line?
Or do I? Any pointers?
TIA,
Pete
First time using msmq in .net environment and I think I am missing
something obvious.
I am using the System.Messaging classes Message & MessageQueue to send
a message.
I want to send a plain-text message (e.g. "Test"), but by default the
Message class serializes it to xml (e.g. "<string>Test</string>"). This
is a problem for me, as the application which will be picking messages
off the queue is a third-party application which requires messages in a
specific format. I have no flexibility to change this.
I've looked briefly at IMessageFormatter, but surely I don't have to
write my own formatter to send *plain-text* messages? I've looked at
BodyStream, but again, surely I don't have to mangle my string into a
byte array simply to send it down the line?
Or do I? Any pointers?
TIA,
Pete