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

jluce50 picture jluce50 · Apr 28, 2011 · Viewed 19.4k times · Source

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!

Answer

vanto picture vanto · Apr 28, 2011

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.