tracelistener

Trace WCF call from client

梦想与她 提交于 2019-11-28 14:31:23
I've built a windows forms client application which makes a WCF call. I'd like to be able to display the actual request and response, includeing SOAP header, and information about the POST/Get, from within the application. Is there a way to configure a trace listener on the client and consume it from within the client, displaying the contents in a text box? I've configured tracing which outputs messages to a file. This configuration is on my client application, so it's logging all calls it is making to the wcf service and the response. So the sources have been added and for each source is an

Trace WCF call from client

点点圈 提交于 2019-11-27 08:38:51
问题 I've built a windows forms client application which makes a WCF call. I'd like to be able to display the actual request and response, includeing SOAP header, and information about the POST/Get, from within the application. Is there a way to configure a trace listener on the client and consume it from within the client, displaying the contents in a text box? I've configured tracing which outputs messages to a file. This configuration is on my client application, so it's logging all calls it is