eclipse 如何将 JAVAX-WS 端点绑定更改为 SOAP 1.2?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5821762/
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
How to change JAVAX-WS Endpoint binding to SOAP 1.2?
提问by jluce50
I'm publishing a test WS implementation using Endpoint.publish()
for consumption in Visual Studio. According to the documentationthe default SOAP binding is 1.1
and it is possible to change the bindings, but I can't figure out specifically how to change the binding to 1.2
.
我正在发布一个Endpoint.publish()
用于在 Visual Studio 中使用的测试 WS 实现。根据文档,默认的 SOAP 绑定是1.1
并且可以更改绑定,但我无法具体弄清楚如何将绑定更改为1.2
.
Any help is appreciated!
任何帮助表示赞赏!
采纳答案by vanto
With JAX-WS 2.x you can either enable SOAP 1.2 via config file or via Java 5 annotation. See here(original, now broken link) for more details.
使用 JAX-WS 2.x,您可以通过配置文件或 Java 5 注释启用 SOAP 1.2。有关更多详细信息,请参见此处(原始链接,现已断开链接)。