Wcf 如何在webhttpbinding配置中将代理设置为使用fiddler

Wcf 如何在webhttpbinding配置中将代理设置为使用fiddler,wcf,fiddler,wcf-rest,webhttpbinding,Wcf,Fiddler,Wcf Rest,Webhttpbinding,我试图通过在webhttpbinding配置文件中设置fiddler代理,将我的Web服务客户端设置为使用fiddler代理,如下所示: <bindings> <webHttpBinding> <binding name="RestBinding" proxyAddress="http://localhost:8888" useDefaultWebProxy="false"> </binding> &

我试图通过在webhttpbinding配置文件中设置fiddler代理,将我的Web服务客户端设置为使用fiddler代理,如下所示:

<bindings>
  <webHttpBinding>
    <binding name="RestBinding" proxyAddress="http://localhost:8888"  
         useDefaultWebProxy="false">

    </binding>
  </webHttpBinding>
</bindings>
<client>
   <endpoint address="http://localhost:2172/RestServiceImpl.svc" 
       binding="webHttpBinding"  behaviorConfiguration="RestService" 
       bindingConfiguration="RestBinding" 
       contract="IWS.IRestServiceImpl" name="Rest"/>
</client>

这似乎不起作用。从客户端调用Web服务时,我在fiddler中没有看到任何登录内容。我知道有人在打电话,因为我得到了服务部门的回复

我似乎不知道我做错了什么

感谢您的帮助


谢谢

NET Framework不会向任何代理(包括Fiddler)发送对“localhost”的请求。要解决此问题,请尝试使用计算机名作为端点地址(例如
http://mymachine:2172/RestServiceImpl.svc


另外,请看

感谢您抽出时间阅读我的帖子。我尝试将其更改为使用计算机名和ip,但两者都给了我错误“错误代码:10061。无法建立连接,因为目标计算机主动拒绝它”。我感觉这现在是我的windows 7计算机上的权限问题。你知道我应该怎么做才能访问我的Web服务吗?我更新了我的主机文件,并且能够让它正常工作。将其更改为使用计算机名成功了!非常感谢你!