I am still a bit new to using MassTransit but I have been researching this topic for a few weeks now and have not come close to finding an answer so I thought maybe I would ask the experts. The task I am trying to accomplish is to be able to use the command line or a command line utility (MSMQ Management Console) to send a message to a MSMQ queue. I then have a consumer of that queue written in C# which is utilizing MassTransit to read and process the message. If I publish a message from the C# program, the message can be easily consumed by my MSMQ. However, I have noticed upon careful inspection that the message is published with a message body and a message extension. When I try to publish (send) the same message from the MSMQ Management Console, it cant be processed because its missing the extension. So my question is... Is there a way to publish a message which is consumable by a MassTransit consumer which does not require the extension? Below is a sample of my message body and further below, the message extension. Any help on the topic would be greatly appreciated.
Thanks,
Chris
<?xml version="1.0" encoding="utf-8"?>
<envelope>
<destinationAddress>msmq://XXXXXX/Nova_consumerService?tx=false&recoverable=true</destinationAddress>
<headers />
<message>
<tstMessage>ThisMsgFromWinForms</tstMessage>
</message>
<messageType>urn:message:Nova.Message:TestMessage</messageType>
<sourceAddress>msmq://XXXXXX/Nova_issuemessage?tx=false&recoverable=true</sourceAddress>
</envelope>
Message Extension
{"Content-Type":"application/vnd.masstransit+xml"}