I'm consuming a third party .NET SOAP WebService (.asmx). I want to log request and response. I have seen 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 {... }
}
Could i do this? Is there another solution?
UPDATE: I like avoid to serialize request and response object. But I´m doing this now.
you can use Fiddler: fiddler2.com/fiddler2/
or Web development helper: projects.nikhilk.net/WebDevHelper
Here is soap extension sample: http://www.codeproject.com/Articles/38986/Trace-SOAP-Request-Response-XML-with-TraceExtensio.aspx
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With