SOAP.net Web Service Log Request / Response

I am using a third-party .NET SOAP WebService (.asmx). I want to register a request and response. I saw some solutions using SoapExtensions . But I like to integrate logging in my system, some like this:

public class MyWebService : ThirdPartyWebService
{
    public string Request { ... }
    public string Response {... }
}

Can I do it? Is there any other solution?

UPDATE: I like to avoid serializing the request and response object. But I am doing it now.

+3
source share
1 answer

you can use fiddler: fiddler2.com/fiddler2/

or web development assistant: projects.nikhilk.net/WebDevHelper

: http://www.codeproject.com/Articles/38986/Trace-SOAP-Request-Response-XML-with-TraceExtensio.aspx

+2

Source: https://habr.com/ru/post/1768036/


All Articles