How to use Fiddler to monitor WCF service

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

    Standard WCF Tracing/Diagnostics

    If for some reason you are unable to get Fiddler to work, or would rather log the requests another way, another option is to use the standard WCF tracing functionality. This will produce a file that has a nice viewer.

    Docs

    See https://docs.microsoft.com/en-us/dotnet/framework/wcf/samples/tracing-and-message-logging

    Configuration

    Add the following to your config, make sure c:\logs exists, rebuild, and make requests:

      
        
          
          
          
        
      
    
      
        
          
            
              
            
          
          
            
              
            
          
        
        
          
        
        
      
    

提交回复
热议问题