Reputation: 2873
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.
Upvotes: 3
Views: 3579
Reputation: 43
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
Upvotes: 2