在使用 wsHttpBinding 加密之前是否可以检查实际的 XML 数据?

发布于 2024-08-20 10:07:20 字数 87 浏览 3 评论 0原文

我创建了一个 WCF 代理(使用 svcutil),它使用 wsHttpBinding 将数据发送到服务器。是否可以在加密之前显示 XML 以查看实际数据/值?

I have created a WCF proxy (with svcutil) that sends data to the server with wsHttpBinding. Is is possible to show the XML before it is encrypted to see the actual data/values?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

極樂鬼 2024-08-27 10:07:20

启用服务跟踪并查看它在 < a href="http://msdn.microsoft.com/en-us/library/ms732023.aspx" rel="nofollow noreferrer">服务跟踪查看器。

预计到达时间:一个方便的教程。

紫罗兰の梦幻 2024-08-27 10:07:20

是的,可以在请求发送之前查看该请求。您可以使用 WCF 消息检查器,它可以在请求发送之前和服务器接收之后拦截请求。对于响应也可以这样做。

查看这篇非常有用的文章,了解如何设置 WCF 消息检查器:信用 Paolo Pialorsi

MSDN 链接 - 消息检查器

如果您计划对请求/响应执行任何操作,我建议使用消息检查器,否则跟踪查看器更适合调试类型检查,如 兰登建议。

Yes it is possible to view the request before it's sent. You can use WCF Message Inspectors that can intercept requests just before they are sent and after they are recieved by the server. The same can be done for responses.

Check this very useful article on how to set up WCF Message Inspectors: Credit Paolo Pialorsi

MSDN Link - Message Inspectors

I'd recommend using Message Inspectors if you plan to do anything with the requests/responses, otherwise trace viewer would be better for debugging type checks, as Langdon suggest.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文