如何将 WS-Security 与 EJB3 结合使用?
对于我们的一个项目,我应该能够调用使用 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果它仍然相关,请查看 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: