<System.ServiceModel>

 

實例:

  <system.serviceModel>
    <diagnostics performanceCounters="All" />
    <services>
      <service name="DotNet.Business.UserService" behaviorConfiguration="Internet">
        <endpoint address="net.tcp://10.149.2.37:8800/DotNet.Business/UserService/" binding="netTcpBinding" bindingConfiguration="netTcpBindingSmiple"  contract="DotNet.Business.IUserService">
        </endpoint>
      </service>
       </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="Internet">
          <serviceCredentials>
          </serviceCredentials>
        </behavior>
      </serviceBehaviors>
    </behaviors>
    <bindings>
      <netTcpBinding>
        <binding name="netTcpBindingSmiple" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647">
          <!-- 无任何加密模式-->
          <security mode="None" >
            <transport clientCredentialType="Windows" />
            <message clientCredentialType="Windows" />
          </security >
        </binding>
      </netTcpBinding>
    </bindings>
  </system.serviceModel>

屬性說明:

contract:获取服务终结点的协定。

name:获取或设置服务终结点的名称。

posted on 2015-10-15 16:24  明俠遠飄  阅读(891)  评论(0编辑  收藏  举报

导航