How to change JAVAX-WS Endpoint binding to SOAP 1.

2019-02-12 12:18发布

问题:

I'm publishing a test WS implementation using Endpoint.publish() for consumption in Visual Studio. According to the documentation the 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.

Any help is appreciated!

回答1:

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.