Trace WCF call from client

前端 未结 3 1228
刺人心
刺人心 2020-12-12 05:07

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 informat

3条回答
  •  长情又很酷
    2020-12-12 05:32

    Try creating a message inspector. On the client side you'd have to implement IClientMessageInspector which will allow you to intercept the message before it is being sent as well as the response which is received prior to passing it further into the application. You'll find more information on MSDN

提交回复
热议问题