Saturday, June 09, 2012

Windows Communcation Foundation Bindings (WCF) Web Services Cheat Sheet

Windows Communcation Foundation Bindings (WCF) Web Services Cheat Sheet
  1. BasicHttpBinding - basic compatibility

    Basic SOAP 1.1
    A binding that is suitable for communicating with WS-Basic Profile conformant Web services, for example, ASP.NET Web services (ASMX)-based services. This binding uses HTTP as the transport and text/XML as the default message encoding.


    BasicHttpBinding was designed for scenarios where interoperability is of utmost importance. As a result, BasicHttpBinding uses HTTP for the transport and text for the message encoding. An important aspect of the message encoding is the expected message version, which happens to be SOAP 1.1 for BasicHttpBinding. As for additional protocols, BasicHttpBinding is capable of using transport or message security, but both are disabled by default. The other WS-* protocols are not supported with this binding. As a result, this binding produces a simple channel stack capable of interoperating with any other basic Web services implementation—and this is a great choice when your number-one priority is to make things work.


    WSHttpBinding - extended compatibility

    SOAP 1.2 along with WS-Addressing 1.0
    A secure and interoperable binding that is suitable for non-duplex service contracts.

    WSHttpBinding . This was also designed for interoperability while incorporating the richer Web services protocols for security, reliable messaging, and transactions. As a result, WSHttpBinding also uses HTTP for the transport and text for the message encoding, but it uses SOAP 1.2 along with WS-Addressing 1.0 for the message version—they are needed to carry the additional Web services protocol headers. The binding enables message-based security (via WS-Security and friends) and is capable of supporting WS-ReliableMessaging and WS-AtomicTransactions if you choose to enable them. WSHttpBinding produces a more sophisticated channel stack and will most likely be constrained to enterprise scenarios where integration across frameworks and platforms is required.

    NetTcpBinding - binary, secure, reliable .NET 

    "A secure and optimized binding suitable for cross-machine communication between WCF applications"
    .NET framework channel stack that will perform better in Windows environments, giving you a great option for replacing your various COM+ and .NET remoting investments.
    NetTcpBinding. Unlike the two HTTP bindings, the various "Net" bindings were not designed for interoperability. In fact, each was designed for optimizing a different communication scenario when you can safely assume you have the Microsoft® .NET Framework 3.0 installed on both sides (this explains why the binding names are prefixed with "Net").
    NetTcpBinding uses 
    • TCP transport,
    • binary message encoding
    • SOAP 1.2 for the message version.  
    • enables transport security by default 
    • can support transactions 

  2. the configuration of this binding focuses on creating a channel stack that will perform better in Windows environments, giving you a great option for replacing your various COM+ and .NET remoting investments.
  3. continued: 

    Windows Communcation Foundation Bindings (WCF) Web Services Cheat Sheet

No comments: