NServiceBus
NServiceBus copied to clipboard
Response serialization format ignores request serialization format
trafficstars
Problem Definition
When integrating between systems, where system A uses one serialization format by default (lets say JSON) and system B uses a different default (say XML), and A request/responses with B, we'd need B to have an additional deserializer registered in order for it to be able to process A's requests. However, when B goes to send a response message, that message would be serialized using its default serializer (XML), and then A wouldn't be able to understand that.
I propose that when an endpoint sends a response, that response message should be serialized in the same format as that of the request message.