如何使用Fiddler监视WCF服务 [英] How to use Fiddler to monitor WCF service

查看:268
本文介绍了如何使用Fiddler监视WCF服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个WCF服务,该服务可以接受复杂的类型并返回一些数据.我想使用Fiddler来查看服务的传入请求.客户端是使用服务引用代理的.net控制台应用程序.提琴手有可能吗?我是这个工具的新手,过去只用它来向请求构建器发布数据.

I have a WCF service that accepts a complex type and returns some data. I want to use Fiddler to see what the incoming requests to the service looks like. The client is .net console app which uses a Service reference proxy. Is this possible with Fiddler. I'm new to this tool and have only used it in the past to post data with the request builder.

推荐答案

您需要在web.config中添加它

You need to add this in your web.config

<system.net>
  <defaultProxy>
    <proxy bypassonlocal="False" usesystemdefault="True" proxyaddress="http://127.0.0.1:8888" />
  </defaultProxy>
</system.net>

  1. 然后在WEBSERVER机器上启动Fiddler.
  2. 点击工具| Fiddler Options => Connections =>将端口调整为8888.(如果需要,可以允许远程访问)
  3. 好的,然后从文件菜单中捕获流量.

仅此而已,但别忘了在关闭提琴手之后删除web.config行,因为如果不这样做,将会出错.

That's all, but don't forget to remove the web.config lines after closing the fiddler, because if you don't it will make an error.

参考资料: http://fiddler2.com/documentation/Configure-Fiddler/Tasks/UseFiddlerAsReverseProxy

这篇关于如何使用Fiddler监视WCF服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆