在本地主机上获取 SOAP 请求

Grab SOAP request on localhost

我在本地主机和 public 上有相同的 Service1 服务 运行:http://calculator.gear.host/Service1.svc http://localhost:8733/Design_Time_Addresses/WcfServiceLibrary1/Service1/mex

我想使用 Fiddler 抓包进行测试。作为客户端行为 WcfTestClient.exe 应用程序内部配置

`WcfTestClient.exe.config` that asks wcf client go through proxy.
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <system.net>
    <defaultProxy>
      <proxy
              bypassonlocal="false" 
              proxyaddress="http://127.0.0.1:8888"              
              />
    </defaultProxy>
  </system.net>
  <runtime>
    <DisableMSIPeek enabled="true"/>
  </runtime>
</configuration>

calculator.gear.host 一切正常,但我无法在使用本地主机或 10.1.2.112(我的以太网 IP)的 Fiddler 中看到数据包。

根据 telerik 的说法,您需要使用机器名称而不是本地主机或 IP:

http://docs.telerik.com/fiddler/Observe-Traffic/Troubleshooting/NoTrafficToLocalhost