Index for bindings in this series:
It’s been a while since the last article in the series on standard bindings, but there are only two left to go so I wanted to finish the series off. These last two bindings are a bit different than the others due to their specialization. Today is the standard binding for MSMQ and tomorrow is the standard binding for PeerChannel.
Microsoft Message Queuing (MSMQ) is a durable queue service that comes with Windows. MSMQ is the only transport included by default in WCF that is durable and that has asynchronous delivery of messages. You’ll need to install message queuing support to actually operate your own queue, although you can create an instance of the binding even if the components are not present.
Standard binding standard disclaimer:
I’ve cut down on the number of properties presented by eliminating duplicates between the binding settings and binding element settings. For instance, the XML reader quotas can be set on either the binding or the message encoder binding element, but I’m only going to show them on the message encoder. I’ve also omitted most of the security credential settings because they’re very messy and you hopefully won’t need to change them much.
MSMQ supports both transport and message security and has the additional capability of being able to turn both on at the same time. I’ll start though by showing what the binding looks like with security disabled.
This binding contains very few entries and all of the queuing configuration settings are available directly off of the transport binding element. There are no additional settings provided at the binding level besides the typical ones you see on all bindings.
EnvelopeVersion: Soap12 (http://www.w3.org/2003/05/soap-envelope)
The MSMQ transport channel provides transport-level security itself so there is no change to the channel stack when transport security is enabled.
Adding message security does put a new element in the channel stack, but since there’s no change when transport security is enabled, the channel stack looks the same whether the security mode is Message or Both.
Next time: Inside the Standard Bindings: NetPeerTcp