Silverlight 3.0 中的 IClientMessageInspector?

发布于 2024-08-06 08:02:47 字数 369 浏览 3 评论 0原文

我正在尝试使用 Silverlight 中的 SOAP 标头来保护数据服务。
我以为我已经在 IClientMessageInspector 中找到了答案。不幸的是,默认情况下似乎不支持这一点,因为创建 SL 项目会添加对 System.ServiceModel v.2 的引用,并且直到 v.3 才添加此接口。

网上查了一下,每个博客都说 IClientMessageInspector 无法与 Silverlight 2.0 一起使用。但他们都没有提及 SL 3.0。

所以问题就变成了,从 SL v 3.0 开始,有没有办法使用 IClientMessageInspector?或者这个功能仍然是 MIA 吗?

I'm trying to secure a data service using SOAP headers in Silverlight.
I thought i had found the answer in IClientMessageInspector. Unfortunately by default it seems this isn't supported, as creating a SL project adds a reference to System.ServiceModel v.2, and this interface wasn't added until v.3.

Looking around online, every blog says that IClientMessageInspector will not work with Silverlight 2.0. But none of them mention anything about SL 3.0.

So the question becomes, is there any way to use the IClientMessageInspector as of SL v 3.0? Or is this functionality still MIA?

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

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

发布评论

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

评论(1

我一直都在从未离去 2024-08-13 08:02:47

嗯...我想我已经在这篇博客文章中找到了解决方法。

Silverlight 的 IClientMessageInspector 实现

我仍在将其移植到我的项目中,但它看起来非常有前途...
会回帖。

Hmmm... I think i have found a workaround to this, in this blog posting.

IClientMessageInspector implementation for Silverlight

I'm still in the process of porting it into my project, but it looks awfully promising...
Will post back.

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