如何配置 fiddler 来监视对 IISExpress 中托管的 wcf 服务的 wcf 调用
情况:
我的网站(包含 WCF 服务)托管在 IISExpres 端口号 58366 (http://localhost:58366/myapp)
我有一个 winforms 客户端,它使用 BasicHttpBinding 连接到 wcf 服务
我想使用调试我的 wcf 调用fiddler,但似乎找不到如何通过 fiddler 重定向 wcf 调用。
situation:
my website (which contains the WCF service) is hosted in IISExpres port number 58366 (http://localhost:58366/myapp)
I have a winforms client which connects to the wcf service using BasicHttpBinding
I want to debug my wcf calls using fiddler, but can't seem find how to redirect wcf calls through fiddler.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
IISExpress 愚蠢地绑定到主机名“localhost”,而不仅仅是绑定到端口,因此向主机名添加点等传统解决方法不起作用。解决方案似乎是这里。请注意所选答案的最后部分:使用“localhost.fiddler”,Fiddler 在代理时将发出“localhost”。
IISExpress idiotically binds to the hostname "localhost", not just to the port, so conventional workarounds as with adding a dot to the hostname don't work. Solution seems to be here. Note the last part of the selected answer: Use "localhost.fiddler" and Fiddler will emit "localhost" when proxying.
Rick Strahl 有一篇关于此的好文章:
很确定 winforms 应用程序通常会选择由 fiddler 设置的默认系统代理。您是否在
localhost
上运行?尝试连接到您的计算机名称。Rick Strahl has a good article on this here: http://www.west-wind.com/weblog/posts/2009/Jan/14/Monitoring-HTTP-Output-with-Fiddler-in-NET-HTTP-Clients-and-WCF-Proxies
Pretty sure a winforms app will usually pick up the default system proxy as set by fiddler. Are you operating on
localhost
? Try connecting to your machine name.