java 将 WS-Security 与 JAX-WS 结合使用

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5085884/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 09:19:42  来源:igfitidea点击:

Using WS-Security with JAX-WS

javaweb-servicesws-securityjava-metro-framework

提问by Tom Condon

Let's pretend all I have is emacs. I want to implement a web service that uses WS-Security with JAX-WS. Does anyone know of a good example of implementing a client that does not rely on tools like Netbeans?

让我们假设我只有 emacs。我想实现一个使用 WS-Security 和 JAX-WS 的 Web 服务。有谁知道实现不依赖于 Netbeans 等工具的客户端的一个很好的例子?

Thanks

谢谢

回答by jtahlborn

The metro stack (which is the reference implementation for jaxws) has a pretty detailed guide, and pretty much all the examples have "with netbeans" and "without netbeans" versions (e.g. i think sections 13/14 are what you are looking for). I know this because I've done a lot of this with emacs myself. (Note, the metro stack has some enhancements not in the base JDK, so you might need to use it specifically to get that stuff working).

Metro 堆栈(它是 jaxws 的参考实现)有一个非常详细的指南,几乎所有的例子都有“带 netbeans”和“不带 netbeans”的版本(例如,我认为第 13/14 节是你正在寻找的) . 我知道这一点是因为我自己用 emacs 做了很多这样的事情。(请注意,metro 堆栈有一些基础 JDK 中没有的增强功能,因此您可能需要专门使用它来使这些东西正常工作)。