WSDL 公开具有和不具有安全性的方法

发布于 2024-10-09 13:19:15 字数 252 浏览 0 评论 0原文

是否可以使用单个 WSDL 来公开一些必须通过 HTTPS 安全访问的方法以及一些可以通过 HTTP 访问的方法。

目前我们有一个在 Weblogic 10.3 上运行的 Web 服务。我们已在 WSDL 本身(X509 证书、签名和加密部分)中启用了安全性。现在我们想要增强此 Web 服务的功能,并添加一些方法供在同一网络内的不同服务器上运行的内部应用程序使用。我们希望通过 HTTP 访问这些方法。 单个 Web 服务是否可以同时服务 HTTP 和 HTTPS 请求?

Is it possible to have a single WSDL exposing few methods that must be accessed securely over HTTPS and few methods that can be accessed with HTTP.

Currently we have a webservice that runs on Weblogic 10.3. We have enabled security for this in the WSDL itself (X509 Certificate, Signed and Encrypted Parts). Now we would like to enhance the functionality of this webservice and add a few methods to be used by internal applications running on different servers within the same network. We want these methods be accessed with HTTP.
Is it possible for a single webservice to service both HTTP and HTTPS requests?.

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

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

发布评论

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

评论(1

单身情人 2024-10-16 13:19:15

从概念的角度来看,是的。 WSDL 由两部分组成:抽象部分和具体部分。抽象部分定义消息,将它们分组为操作,然后分组为代表公共接口的端口类型。在具体部分中,这些接口随后被绑定到传输协议(<绑定>)并在端点处公开(<端口>和<服务>)。因此,您可以简单地为单个 portType 定义两个绑定和服务,这将导致同一公共接口有两个具有不同 QoS 和/或传输的服务端点。

From a conceptual point of view, yes. A WSDL consists of two parts, the abstract and concrete part. The abstract part defines messages, groups them to operations and then to portTypes, which represent the public interface. In the concrete part, these interfaces are then bound to a transport protocol (< binding >) and exposed at an endpoint (< port > and < service >). Thus, you can simple define two bindings and services for a single portType, which will result in having two service endpoints with different QoS and/or transports for the same public interface.

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