You develop a Windows Communication Foundation (WCF) service that interacts with Microsoft Message Queuing (MSMQ). The service requires sessions.
You need to create a custom binding that enables messages sent to the queue to be viewed when you are using a listener tool.
Which binding elements should you use?
A.
textMessageEncoding and msmqTransport in this order.
B.
textMessageEncoding and msmqIntegrationTransport in this order.
C.
msmqTransport and textMessageEncoding in this order.
D.
msmqIntegrationTransport and textMessageEncoding in this order.
Explanation:
You can add binding elements by adding the desired BindingElement objects to its Elements collection.
The order in which the binding element is added is very important. The order of adding the binding elements is as follows:
1. Transaction Flow (not required)
2. Reliable Messaging (not required)
3. Message Security (not required)
4. Composite Duplex (not required)
5. Message Encoding (required)
6. Transport Security (not required)
7. Transport (required)Bindings
(http://msdn.microsoft.com/en-us/library/ff650874.aspx)<textMessageEncoding>
Specifies the character encoding and message versioning used for text-based XML messages.
<msmqTransport>
Causes a channel to transfers messages on the MSMQ transport when it is included in a custom binding.<textMessageEncoding>
(http://msdn.microsoft.com/en-us/library/ms731787.aspx)<msmqTransport>
(http://msdn.microsoft.com/en-us/library/ms731307.aspx)Message Queuing (MSMQ)
(http://msdn.microsoft.com/en-us/library/windows/desktop/ms711472(v=vs.85).aspx)
A
0
0