Cannot set javax.xml.soap.MessageFactory System Variable for two different purposes. The default value is set for SOAP 1.1
Remove the system property javax.xml.soap.MessageFactory and depending on the type of client you are using
Building a Soap Message Using MessageFactory.newInstance()
If you want to use SOAP1.1, use the default constructor
MessageFactory factory = MessageFactory.newInstance();
If you want to use SOAP1.2, use
MessageFactory factory = MessageFactory.newInstance(SOAPConstants.SOAP_1_2_PROTOCOL);
See the Java Tutorial .
JAX-WS clients configured with @BindingType annotations
@BindingType used when the JAX-WS client is configured using annotations, for example, if the client is created from WSDL. Annotations are added to the port to establish binding to SoapBinding.SOAP11HTTP_BINDING or SoapBinding.SOAP12HTTP_BINDING .
@WebService(targetNamespace = "https://myservice.services.com", name = "myserviceProxyProt") @BindingType(javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_BINDING) public interface MyServiceProxyPort {
pedrofb
source share