2009年2月13日 星期五

Binding (4): Others binding elements

由上三回的說明,您大概可看出,其是 一個Binding是以數個 binding element 有順序地組成一個 stack。每一個 binding element 負責溝通的一部份功能。

Binding Binding Elements 說明
BasicHttpContextBinding
<basicHttpContextBinding>
TextMessageEncodingBindingElement, HttpTransportBindingElement BasicHttpBinding 的主要差別,BasicHttpContextBinding 將 allowCookies 設為 true
MsmqIntegrationBinding

<msmqIntegrationBinding>

BinaryMessageEncodingBindingElement,
MsmqTransportBindingElement
 
NetMsmqBinding
<netMsmqBinding>
BinaryMessageEncodingBindingElement,
MsmqTransportBindingElement
 
NetPeerTcpBinding

<netPeerTcpBinding>

BinaryMessageEncodingBindingElement,
PnrpPeerResolverBindingElement,
PeerTransportBindingElement
 
WebHttpBinding

<webHttpBinding>

TextMessageEncodingBindingElement,
HttpTransportBindingElement
BasicHttpBinding 使用 SOAP 作為訊息格式,而WebHttpBinding 使用 HTTP 作為訊息格式
WSFederationHttpBinding
<wsFederationHttpBinding>
TransactionFlowBindingElement, TextMessageEncodingBindingElement, HttpTransportBindingElement  
WSHttpContextBinding

<wsHttpContextBinding>

TransactionFlowBindingElement, TextMessageEncodingBindingElement, HttpTransportBindingElement  
WS2007FederationHttpBinding
<ws2007FederationHttpBinding>
TransactionFlowBindingElement, TextMessageEncodingBindingElement, HttpTransportBindingElement  
WS2007HttpBinding

<ws2007HttpBinding>

TransactionFlowBindingElement, TextMessageEncodingBindingElement, HttpTransportBindingElement 與WsHttpBinding 相同,但使用了新版的Security, ReliableSession, 與 TransactionFlow binding elements。

沒有留言:

Share with Facebook