0

I have been capturing traffic using Fiddler for some ASMX services that call other ASMX services. In this case, I have a simple WCF service calling those ASMX services. It won't capture any traffic. The only wrinkle is that it is using IIS not IISExpress (http://localhost/Interface12Service/Interface12Service.svc). How can I capture WCF traffic?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
user2471435
  • 1,644
  • 7
  • 35
  • 62

4 Answers4

7

The Microsoft .NET Framework is hardcoded to bypass proxies for any request to http://localhost. To capture such requests in Fiddler or any other proxy, use

http://machinename:port/

or

http://localhost.fiddler:port/

as the target URL.

EricLaw
  • 56,563
  • 7
  • 151
  • 196
1

By default, Fiddler will not capture the traffic. If you want it to capture the traffic, change the client proxy base address to your machine name or to your IP (for instance: 127.0.0.1). This should do the trick. If not, try this.

Community
  • 1
  • 1
Superzadeh
  • 1,106
  • 7
  • 23
0

It could just be that fiddler has difficulty picking up traffic from localhost
Try changing the address to http://localhost./Interface12Service/Interface12Service.svc

(Notice the dot after localhost.) This is a common hack for working with Fiddler.

Buh Buh
  • 7,443
  • 1
  • 34
  • 61
  • How can set that if I am debugging an IIS service and it goes right to the IIS Test Client? There is no opportunity to change the URL. – user2471435 Sep 25 '13 at 14:47
0

Another possible issue is related to WCF client (this may also include other clients but i'm not sure). The client can be configured not to use the machine default proxy, which makes the client/application bypass Fiddler capture.

For further reading: What is the purpose of usedefaultwebproxy in WCF.

drtf
  • 1,886
  • 2
  • 21
  • 19