Silverlight 3.0 中的 IClientMessageInspector?
我正在尝试使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嗯...我想我已经在这篇博客文章中找到了解决方法。
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.