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

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

How to change JAVAX-WS Endpoint binding to SOAP 1.2?

javaeclipseweb-servicessoapjava-metro-framework

提问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.1and 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。有关更多详细信息请参见此处原始链接,现已断开链接)。