开发者

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.

  1. netTcpBinding
  2. basicHttpBinding

Or

  1. netTcpBinding
  2. 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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜