Get SOAP Message before sending it to the WebService in .NET

后端 未结 6 1813
粉色の甜心
粉色の甜心 2020-12-03 05:26

I\'m calling an external HTTPS webservice.

In order to check what is wrong, the owner needs the SOAP request I\'m sending.

I have a web reference and the gen

6条回答
  •  情话喂你
    2020-12-03 05:41

    Add this to the element of your web.config or App.config file. It will create a trace.log file in your project's bin/Debug folder. Or, you can specify an absolute path for the log file using the initializeData attribute.

      
        
        
          
            
              
            
          
        
        
          
        
      
    

    It warns that the maxdatasize and tracemode attributes are not allowed, but they increase the amount of data that can be logged, and avoid logging everything in hex.

提交回复
热议问题