gpt4 book ai didi

c# - wse 3.0 或 wcf 以及从哪里开始

转载 作者:太空狗 更新时间:2023-10-30 00:09:34 25 4
gpt4 key购买 nike

我已经创建了一个 Web 服务,它有几个使用 .net 3.5 开发的方法。将访问 Web 服务的客户端将使用 .net 3.0。我被要求使此 Web 服务“安全”,并且在网上查看了很多选项。

第一个是将 WCF 与 .net 3.5 一起用于该服务。如果我使用 .net 3.5 开发服务,我还需要使用 3.5 开发客户端吗?

其次,我可以考虑使用 WSE 3.0 并以这种方式实现安全性。但是,在查看 .net 后,我​​了解到在 visual studio 2008 中使用 WSE 3 存在一些问题。

任何其他建议将不胜感激。我想保护 Web 服务,因此使用 WCF 或 WSE 3.0。

最佳答案

WCF 框架是 .NET 3.0 而不是 .NET 3.5 的一部分,因此您不需要在客户端中安装 .NET 3.5。

您还可以使用 WCF 提供基于 Web 服务标准的服务。这些服务甚至可以与“旧”Web 服务客户端或其他平台(如 Java)一起使用。

基于凭据的 WCF 消息安全性符合 WS-Security 1.1 标准,该标准也可用于 WSE 客户端。

http://msdn.microsoft.com/en-us/library/ms735093.aspx: WCF supports a wide variety of interoperability scenarios. The BasicHttpBinding class is targeted at the Basic Security Profile (BSP) and the WSHttpBinding class is targeted at the latest security standards, such as WS-Security 1.1 and WS-SecureConversation. By adhering to these standards, WCF security can interoperate and integrate with Web services that are hosted on operating systems and platforms other than Microsoft Windows.

我肯定会选择 WCF 解决方案而不是 WSE。我认为 WCF 是 WSE 的直接继承者,Microsoft 没有进一步改进它(甚至 WSE 3.0 下载页面上的 WSE 主页链接也被破坏)。

正如 Alex 所提到的,尽管有标准,但连接到非 MS 平台可能具有挑战性。在这些情况下绝对需要概念验证。

关于c# - wse 3.0 或 wcf 以及从哪里开始,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/386071/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com