How to use Fiddler to monitor WCF service

前端 未结 10 586
情话喂你
情话喂你 2020-11-27 10:20

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 .ne

10条回答
  •  攒了一身酷
    2020-11-27 10:25

    This is straightforward if you have control over the client that is sending the communications. All you need to do is set the HttpProxy on the client-side service class.

    I did this, for example, to trace a web service client running on a smartphone. I set the proxy on that client-side connection to the IP/port of Fiddler, which was running on a PC on the network. The smartphone app then sent all of its outgoing communication to the web service, through Fiddler.

    This worked perfectly.

    If your client is a WCF client, then see this Q&A for how to set the proxy.

    Even if you don't have the ability to modify the code of the client-side app, you may be able to set the proxy administratively, depending on the webservices stack your client uses.

提交回复
热议问题