Security modes in WCF?

Posted by Allemahesh under WCF on 7/16/2013 | Points: 10 | Views : 1022 | Status : [Member] [MVP] | Replies : 1
We have Transport and Message security modes in WCF. So
Which one is fast?
Which one is default?
When to use each of them?
I have face this question in my interview. Can any one help me.


Posted by: Jitendrasoft09 on: 7/23/2013 [Member] [MVP] Starter | Points: 25

Hi Allemahesh,

Message security mode is faster due to not authenticating the user as doing transport security.

Neither of them by default, You can say WSDualHttpBinding does not support for transport but supports message security. It is depend on which data binding is using. As in wshttpbinding by default is message and nettcpbinding is by default transport.

To make sure you are clicking below link to understand about both securities-

Hope you are clear.

Jitendra Kumar
If my post helps you, plz mark as an answer.

Allemahesh, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response