_factory = MessageFactory.newInstance(SOAP_1_1_PROTOCOL);
else if (SOAPBinding.SOAP12HTTP_BINDING.equals(bindingId) ||
SOAPBinding.SOAP12HTTP_MTOM_BINDING.equals(bindingId))
_factory = MessageFactory.newInstance(SOAP_1_2_PROTOCOL);
else
throw new WebServiceException(L.l("Unsupported binding id: {0}",
bindingId));
}
catch (SOAPException e) {
throw new WebServiceException(e);
}
if (mode != Service.Mode.MESSAGE)
throw new WebServiceException(L.l("Instances of Dispatch<SOAPMessage> can only have mode MESSAGE"));
}