How to use Fiddler to monitor WCF service

前端 未结 10 555
情话喂你
情话喂你 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:39

    So simple, all you need is to change the address in the config client: instead of 'localhost' change to the machine name or IP

    0 讨论(0)
  • 2020-11-27 10:45

    Just had this problem, what worked for me was to use localhost.fiddler:

     <endpoint address="http://localhost.fiddler/test/test.svc"
                binding="basicHttpBinding" 
                bindingConfiguration="customBinding" 
                contract="test" 
                name="customBinding"/>
    
    0 讨论(0)
  • 2020-11-27 10:45

    I have used wire shark tool for monitoring service calls from silver light app in browser to service. try the link gives clear info

    It enables you to monitor the whole request and response contents.

    0 讨论(0)
  • 2020-11-27 10:46

    I just tried the first answer from Brad Rem and came to this setting in the web.config under BasicHttpBinding:

    <system.serviceModel>
        <bindings>
          <basicHttpBinding>
            <binding bypassProxyOnLocal="False" useDefaultWebProxy="false" proxyAddress="http://127.0.0.1:8888" ...
            ...
          </basicHttpBinding>
        </bindings>
        ...
    <system.serviceModel>
    

    Hope this helps someone.

    0 讨论(0)
提交回复
热议问题