zoukankan      html  css  js  c++  java
  • WCF configuration file

    WCF configuration file

     

    The configuration file in the host application follows the same format as the configuration file in the client application. There is a <bindings> section where the bindings are defined and a <service> section in which the endpoints (addresses and bindings) are defined.

     

    When defining endpoints in a configuration file the service name should be in the format of NAMESPACE.CLASSNAME, and the endpoint contract name should be in the format of NAMESPACE.INTERFACECLASS.

     

    In the preceding example, the service namespace is WCFService with a class name of ServiceClass, and the interface is named IServiceClass. Therefore the service and endpoints are defined in the configuration file as the following:

     

    <service name =”WCFService.ServiceClass”>

    <endpoint contract =”WCFService.IServiceClass”

    name=”NetTcpBinding_IServiceClass”

    binding =”netTcpBinding”

    address =”net.tcp://localhost:8000/TcpBinding”/>

    <endpoint contract =”WCFService.IServiceClass”

    name=”netNamedPipeBinding_IServiceClass”

    binding =”netNamedPipeBinding”

    address =”net.pipe://localhost/NetNamedPipeBinding”/>

    </service>

     

     

     

  • 相关阅读:
    SNOI 2019 字符串
    1068: [SCOI2007]压缩
    POJ 1848 Tree 树形DP
    BZOJ bzoj1396 识别子串
    BZOJ 4503: 两个串
    BZOJ 2302: [HAOI2011]Problem c(数学+DP)
    BZOJ 3157: 国王奇遇记 (数学)
    CF_528D
    BZOJ 3000: Big Number (数学)
    新の开始
  • 原文地址:https://www.cnblogs.com/rickie/p/1050449.html
Copyright © 2011-2022 走看看