Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

log request/response of .net SOAP web service

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.

like image 678
fravelgue Avatar asked Jan 28 '26 20:01

fravelgue


1 Answers

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

like image 89
Wolfie Avatar answered Jan 30 '26 11:01

Wolfie



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!