In integration scenarios where the sender is unable to add headers to the message, the serializer can infer the CLR message type based on the root node of the XML payload. To take advantage of this, the name of the payload's root node must match the
Type. of a message type known to the receiving endpoint.
This technique allows messages without any headers, including the
NServiceBus. header, to be processed. This is demonstrated by the native integration with RabbitMQ sample.
The XML serializer in NServiceBus is a custom implementation. As such it does not support the standard .NET XML attributes.