zoukankan      html  css  js  c++  java
  • WCF tcpTrace.exe配置

    Web.config

    <?xml version="1.0" encoding="utf-8"?>
    <configuration>
      <system.serviceModel>
        <behaviors>
          <serviceBehaviors>
            <behavior name="metadataBehavior">
              <serviceMetadata httpGetEnabled="true" />
            </behavior>
          </serviceBehaviors>
        </behaviors>
        
        <services>
          <service behaviorConfiguration="metadataBehavior" name="Services.CalculatorService">
            <endpoint binding="wsHttpBinding" contract="Contracts.ICalculator" />
          </service>
        </services>
        
      </system.serviceModel>
        <system.web>
            <authentication mode="Forms" />
        </system.web>
    </configuration>

    Clent App.config

    <?xml version="1.0" encoding="utf-8" ?>
    <configuration>
        <system.serviceModel>
          <behaviors>
            <endpointBehaviors>
              <behavior name="calculatorEndpointBehavior">
                  <clientVia viaUri="http://localhost:100/CalculatorService.svc" />
              </behavior>
            </endpointBehaviors>
          </behaviors>
            <bindings>
                <wsHttpBinding>
                    <binding name="WSHttpBinding_CalculatorService" closeTimeout="00:01:00"
                        openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00"
                        bypassProxyOnLocal="false" maxBufferPoolSize="524288" maxReceivedMessageSize="65536"
                        useDefaultWebProxy="true" allowCookies="false">
                        <security>
                            <transport realm="" />
                        </security>
                    </binding>
                </wsHttpBinding>
            </bindings>
            <client>
                <endpoint address="http://localhost:96/CalculatorService.svc" behaviorConfiguration="calculatorEndpointBehavior" binding="wsHttpBinding"
                    bindingConfiguration="WSHttpBinding_CalculatorService" contract="ServiceReference1.CalculatorService"
                    name="WSHttpBinding_CalculatorService">
                    <identity>
                        <servicePrincipalName value="host/it10" />
                    </identity>
                </endpoint>
            </client>
        </system.serviceModel>
    </configuration>

    IIS中把配置站点端口为96

    tcpTrace配置

    Listen on Port # : 100
    Destination Server: localhost
    Destination Port# :96

    WCF.rar
    tcpTrace.rar



    签名:删除冗余的代码最开心,找不到删除的代码最痛苦!
  • 相关阅读:
    vs code 编译python 输出到调试控制台
    vs code个性化设置
    IDEA 简拼输入
    微信小程序 audio组件 默认控件 无法隐藏/一直显示/改了controls=‘false’也没用2019/5/28
    win10的cortana搜索显示空白
    微信小程序tabbar不显示2019.04.06
    读《提问的智慧》有感
    CLion 控制台输出内容乱码问题的解决方法
    vs code C语言环境搭建
    利用python的爬虫技术爬去糗事百科的段子
  • 原文地址:https://www.cnblogs.com/season2009/p/3454123.html
Copyright © 2011-2022 走看看