开发一个安全的 WS 客户端以使用 Rampart WS 安全模块来使用 Axis2 Web 服务?
我有一个使用 Rampart 保护的 Axis2 Web 服务。 我确实想为其开发安全客户端,最好是基于 JAX-WS 的。 我尝试了很多教程,但它们彼此紧密相连,例如在客户端包含 Axis2 库。 客户端应该完全独立于 WS 服务框架,因为该服务可以由基于 .NET 的客户端甚至基于 PHP 的客户端使用。
提前致谢...
I have a Axis2 web service secured using Rampart. I do want to develop secure clients for it, preferably JAX-WS based. I tried a lot of tutorials but they are so closed tied with each other, like including Axis2 libraries in the client side. The client should be fairly independent of the WS service framework, as the service can be consumed by .NET based clients or even PHP based clients.
Thanks in advance...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我了解,您希望能够将为您的 Rampart 安全 Web 服务定义的策略提供给您的 JAX-WS 客户端。
这应该是可行的。 正如您所说,我们的想法是能够执行不同的客户端和服务器技术,并围绕 WSDL 进行标准化...
我们才刚刚进入这个领域,所以我没有任何实际知识可以提供给您。
但我认为您应该能够在 services.xml 文件中复制服务器上的城墙策略信息并将其放入您的客户端中。
这似乎很有帮助:
https://metro.dev.java.net/guide/
特别是第 12 条和第 18 条。
As I understand it, you would want to be able to feed the policy defined for your Rampart secured web service into your JAX-WS client.
That ought to be doable. As you say-- the idea is to be able to execute different client and server technologies, standardized around WSDLs...
We're only just getting into this - so I don't have any hands on knowledge for you.
But I would think you should be able to copy the policy info for your rampart on the server in the services.xml file and put it in your client.
This seemed pretty helpful:
https://metro.dev.java.net/guide/
Sections 12 and 18 in particular.