【问题标题】:log request/response of .net SOAP web service记录 .net SOAP Web 服务的请求/响应
【发布时间】:2010-10-05 09:49:14
【问题描述】:

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

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

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

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

【问题讨论】:

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


【解决方案1】:

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

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

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

【讨论】:

  • 谢谢回答。我知道提琴手,但我需要审计而不是调试。 codeproject 类似于 msdn 文章。
猜你喜欢
  • 2015-03-11
  • 2011-11-02
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2023-04-02
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多