问题
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.
来源:https://stackoverflow.com/questions/5821762/how-to-change-javax-ws-endpoint-binding-to-soap-1-2