WCF Medium Trust Environment Which bindings to use
A question in 70-513 exam asked which 2 bindings shou开发者_开发知识库ld you use for a medium trust environment.
- netTcpBinding
- basicHttpBinding
Or
- netTcpBinding
- wsHttpBinding
Does anyone know what the correct answer is?
The BasicHttpBinding
and WebHttpBinding
are fully supported in a partial trust environment. The WSHttpBinding
is supported for Transport
security mode only.
Bindings that use transports other than HTTP, such as the NetTcpBinding
, the NetNamedPipeBinding
, or the NetMsmqBinding
, are not supported when running in a partial trust environment.
See http://msdn.microsoft.com/en-us/library/bb412186.aspx for more details.
Seems the answer is neither according to this MSDN article. If this is accurate, I would guess that something in the security or session implementation of the netTcpBinding might require full trust. Don't have the time to try but I'll add it to my list to try in WCF.
精彩评论