如何将 WS-Security 与 EJB3 结合使用?

发布于 2024-07-09 20:51:55 字数 237 浏览 7 评论 0原文

对于我们的一个项目,我应该能够调用使用 WS-Security 的 Web 服务,即 SOAP 请求应该使用 X.509 证书进行签名。 我一直在做一些测试,通过使用 WebServiceRef 注释来调用 Web 服务,并且我能够在没有 WS-Security 的情况下调用 Web 服务。

所以我的问题是:使用 WebServiceRef 注释时如何激活和/或配置 WS-Security?

问候,斯特凡·莱乔。

For one of our projects, I should be able to call a webservice that uses WS-Security, i.e. the SOAP request should be signed with an X.509 certificate. I've been doing some tests to call the webservice through the use of the WebServiceRef annotation and I'm able to call the webservice without WS-Security.

So my question is: how can I activate and/or configure WS-Security when using the WebServiceRef annotation ?

Regards, Stefan Lecho.

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

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

发布评论

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

评论(1

与他有关 2024-07-16 20:51:55

如果它仍然相关,请查看 WSIT,特别是其描述的 WS-Security 实现此处。 基本上,您只需像平常一样使用 @WebServiceRef,提供 wsit-client.xml,并指定正确的即可。 节点。

您可能会发现这些很有用:

If it still relevant, have a look at WSIT, and in particular, its WS-Security implementation described here. Basically you just have to use @WebServiceRef as you usually do, provide a wsit-client.xml, and specify the proper <Policy> node.

You might find these useful:

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