zoukankan      html  css  js  c++  java
  • WCF中常用的binding方式

    WCF中常用的binding方式:

    BasicHttpBinding: 用于把
    WCF 服务当作 ASMX Web 服务。用于兼容旧的Web ASMX 服务。
    WSHttpBinding:

    BasicHttpBinding 更加安全,通常用于 non-duplex 服务通讯。
    WSDualHttpBinding:

    WSHttpBinding 相比,它支持 duplex 类型的服务。
    WSFederationHttpBinding:
    WS-Federation
    安全通讯协议。
    NetTcpBinding:

    使用 TCP 协议,用于在局域网(Intranet)跨机器通信。有几个特点:可靠性、事务支持和安全,优化了 WCF WCF 的通信。限制是服务端和客户端都必须使用 WCF 来实现。
    NetNamedPipeBinding:

    使用命名管道进行安全、可靠、高效的单机服务通讯方式。
    NetMsmqBinding:

    使用消息队列在不同机器间进行非连接通讯。
    NetPeerTcpBinding:

    使用 P2P 协议在多机器间通讯。
    MsmqIntegrationBinding:

    WCF 消息转化为 MSMQ 消息,使用现有的消息队列系统进行跨机器通讯。如 MSMQ























































    名称


    传输


    编码


    共同操作


    BasicHttpBinding


    HTTP/HTTPS


    Text


    Yes


    NetTcpBinding


    TCP


    Binary


    No


    NetPeerTcpBinding


    P2P


    Binary


    No


    NetNamedPipeBinding


    IPC


    Binary


    No


    WSHttpBinding


    HTTP/HTTPS


    TextMTOM


    Yes


    WSFederationBinding


    HTTP/HTTPS


    TextMTOM


    Yes


    WSDualHttpBinding


    HTTP


    TextMTOM


    Yes


    NetMsmqBinding



    MSMQ



    Binary


    No


    MsmqIntegrationBinding


    MSMQ


    Binary



    Yes













































    Binding名称


    Configuration Element


    描述


    BasicHttpBinding


    basicHttpBinding


    一个指定用符合基本网络服务规范通讯的binding,它用http进行传输,数据格式为text/xml


    WSHttpBinding


    wsHttpBinding


    一个安全的通用的binding,但它不能在deplex中使用


    WSDualHttpBinding


    wsDualHttpBinding


    一个安全的通用的binding,但能在deplex使用


    WSFederationHttpBinding


    wsFederationHttpBinding


    一个安全的通用的支持WSFbinding,能对用户进行验证和授权


    NetTcpBinding


    netTcpBinding


    wcf应用程序中最适合跨机器进行安全通讯的binding


    NetNamedPipeBinding


    netNamedPipeBinding


    wcf应用程序中最适合本机进行安全通讯的binding


    NetMsmqBinding


    netMsmqBinding


    wcf应用程序中最适合跨机器进行安全通讯的binding,并且支持排队


    NetPeerTcpBinding


    netPeerTcpBinding


    一个支持安全的,多机交互的binding


     


    msmqIntegrationBinding


     

  • 相关阅读:
    HTTP的GET和POST请求
    移动开发平台性能比較
    Struts2之类型转换器的使用
    对Socket CAN的理解(4)——【Socket CAN接收数据流程】
    当罗密欧遇到朱丽叶... ...当指针遇到数组
    Qt的Script、Quick、QML的关系与总结
    nyoj27水池数目 (DFS)
    HBase行锁原理及实现
    poj1852ant
    JSTL&EL表达式
  • 原文地址:https://www.cnblogs.com/itjeff/p/4234275.html
Copyright © 2011-2022 走看看