日志请求/响应.net SOAP Web服务

时间:2010-10-05 09:49:15

标签: .net web-services soap asmx soap-extension

我正在使用第三方.NET SOAP WebService(.asmx)。我想记录请求和响应。我已经看到了一些使用SoapExtensions的解决方案。但我喜欢在我的系统中集成日志记录,有些像这样:

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

我可以这样做吗?还有其他解决方案吗?

更新:我喜欢避免序列化请求和响应对象。但我现在正在这样做。

1 个答案:

答案 0 :(得分:2)

你可以使用Fiddler:fiddler2.com/fiddler2 /

或Web开发助手:projects.nikhilk.net/WebDevHelper

这是soap扩展示例:http://www.codeproject.com/Articles/38986/Trace-SOAP-Request-Response-XML-with-TraceExtensio.aspx

相关问题