The following
summarizes are common bindings in WCF.
basicHttpBinding Configures and exposes endpoints that are able to
Communicate with ASP.NET Web Services (ASMX)–based Web
Services and clients and other services that conform to the
WS-I Basic Profile 1.1 specification. By default, it has security
Disabled
ws2007HttpBinding Defines a secure, reliable, interoperable binding suitable for non-duplex service contracts. The binding implements the following specifications: WS-Reliable Messaging for reliability,
and WS-Security for message security and authentication. The
transport is HTTP, and message encoding is text/XML
encoding. The ws2007HttpBinding provides binding similar to
wsHttpBinding but uses the standard for OASIS (Organization
for the Advancement of Structured Information Standards).
By default, it provides message security with Windows
authentication.
Windows authentication as default security settings. It uses
TCP protocol for message delivery, and binary message
Encoding.
netMsmqBinding Defines a queued binding suitable for cross-machine communication.
wsFederationHttpBinding Defines a binding that supports federated security. It helps implement federation, which is the ability to flow and share identities across multiple enterprises or trust domains for authentication and authorization. WCF implements
federation over message and mixed mode security but not
over transport security. Services configured with this binding
must use the HTTP protocol as transport.
For Fedaration : http://wcfsecurity.codeplex.com/wikipage?title=What%20is%20federated%20security%3F
ws2007FederationHttpBinding Defines a binding that derives from wsFederationHttpBinding and supports federated security. It helps implement federation, which is the ability to flow and share identities across multiple enterprises or trust domains for
authentication and authorization. WCF implements
federation over message and mixed mode security but not
over transport security. Services configured with this binding
must use the HTTP protocol as transport.
wsDualHttpBinding Defines a secure, reliable, and interoperable binding that is suitable for duplex service contracts or communication through Simple Object Access Protocol (SOAP) intermediaries.
basicHttpBinding Configures and exposes endpoints that are able to
Communicate with ASP.NET Web Services (ASMX)–based Web
Services and clients and other services that conform to the
WS-I Basic Profile 1.1 specification. By default, it has security
Disabled
<bindings>
<basicHttpBinding>
<binding name="BasicHttpEndpointBinding">
<security mode="TransportCredentialOnly">
<transport clientCredentialType="Windows" />
</security>
</binding>
</basicHttpBinding>
</bindings>
wsHttpBinding Defines a secure, reliable, interoperable binding suitable for non-duplex
service contracts. The binding implements thefollowing
specifications: WS-Reliable Messaging for reliability,and WS-Security
for message security and authentication. Thetransport is
HTTP, and message encoding is text/XML
<bindings>
<wsHttpBinding>
<binding name="wsHttpEndpointBinding">
<security mode="Transport">
<transport clientCredentialType="Windows" />
</security>
</binding>
</wsHttpBinding>
</bindings>
<bindings>
<ws2007HttpBinding>
<binding name="ws2007HttpEndpointBinding">
<security mode="Transport">
<transport clientCredentialType="Windows" />
</security>
</binding>
</ws2007HttpBinding>
</bindings>
netTcpBinding Specifies a secure, reliable, optimized binding suitable for ross-machine communication. By default, it generates a runtime Communication stack with transport security andWindows authentication as default security settings. It uses
TCP protocol for message delivery, and binary message
Encoding.
<bindings>
<netTcpBinding>
<binding name="NetTCPEndpointBinding">
<security mode="Transport">
<transport clientCredentialType="Windows" />
</security>
</binding>
</netTcpBinding>
</bindings>
netNamedPipeBinding Defines a binding that is secure, reliable, optimized for crossprocess communication on the same machine. By default, it generates a run-time communication stack with WSReliableMessaging for reliability, transport security for
transfer security, named pipes for message delivery, and
binary message encoding. It is not secured by default.
<bindings>
<netNamedPipeBinding>
<binding name="NetnamedPipeEndpointBinding">
<security mode="Transport">
<transport protectionLevel="EncryptAndSign"/>
</security>
</binding>
</netNamedPipeBinding>
</bindings>
<bindings>
<netMsmqBinding>
<binding name="NetMSMQEndpointBinding">
<security mode="Transport">
<transport msmqProtectionLevel="EncryptAndSign"/>
</security>
</binding>
</netMsmqBinding>
</bindings>
wsFederationHttpBinding Defines a binding that supports federated security. It helps implement federation, which is the ability to flow and share identities across multiple enterprises or trust domains for authentication and authorization. WCF implements
federation over message and mixed mode security but not
over transport security. Services configured with this binding
must use the HTTP protocol as transport.
For Fedaration : http://wcfsecurity.codeplex.com/wikipage?title=What%20is%20federated%20security%3F
<bindings>
<wsFederationHttpBinding>
<binding name="wsFederationEndpointBinding">
<security mode="Transport">
<message negotiateServiceCredential="false"></message>
</security>
</binding>
</wsFederationHttpBinding>
</bindings>
ws2007FederationHttpBinding Defines a binding that derives from wsFederationHttpBinding and supports federated security. It helps implement federation, which is the ability to flow and share identities across multiple enterprises or trust domains for
authentication and authorization. WCF implements
federation over message and mixed mode security but not
over transport security. Services configured with this binding
must use the HTTP protocol as transport.
<bindings>
<ws2007FederationHttpBinding>
<binding name="ws2007FederationEndpointBinding">
<security mode= "Message">
<message negotiateServiceCredential="false"></message>
</security>
</binding>
</ws2007FederationHttpBinding>
</bindings>
<bindings>
<wsDualHttpBinding>
<binding name="wsDualHttpEndpointBinding">
<security mode= "Message">
<message negotiateServiceCredential="false"></message>
</security>
</binding>
</wsDualHttpBinding>
</bindings>
customBinding Allows you to create a custom binding with full control over the message stack.
<bindings>
<customBinding>
<binding name="CustomHttpEndpointBinding">
<httpsTransport allowCookies="true"></httpsTransport>
</binding>
</customBinding>
</bindings>
No comments:
Post a Comment