0

I am trying to get an XML message from a queue (hosted by ActiveMQ). It works perfectly as long as I use JSON messages, but I do not get it to work with raw text or XML messages.

I have tried to change the ContentType:

cfg.DefaultContentType = new ContentType(@"application/vnd.masstransit+xml");

I also tried to create a custom Deserializer.

I always end up with a deserialization error of the Json Deserializer.

Justin Bertram
  • 29,372
  • 4
  • 21
  • 43
Hawk IT
  • 13
  • 3

1 Answers1

0

You would need to configure the proper deserializer, such as:

cfg.UseRawXmlDeserializer()

(requires the MassTransit.Newtonsoft package)

Chris Patterson
  • 28,659
  • 3
  • 47
  • 59