views:

50

answers:

1

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.

+1  A: 

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

Wolfie
thx for answer. I know fiddler but i need for auditing not for debugging. codeproject is similar to msdn article.
fravelgue