throws ConfigurationException
{
super(service);
if (_mode != Service.Mode.MESSAGE)
throw new ConfigurationException(L.l("{0} implements Provider<SOAPMessage> must have @ServiceMode annotation with value Service.Mode == MESSAGE", _class.getName()));
try {
BindingType bindingType
= (BindingType) _class.getAnnotation(BindingType.class);
if (bindingType != null &&
bindingType.value().equals(SOAPBinding.SOAP12HTTP_BINDING))
_factory = MessageFactory.newInstance(SOAP_1_2_PROTOCOL);
else
_factory = MessageFactory.newInstance(SOAP_1_1_PROTOCOL);
}
catch (SOAPException e) {
throw new ConfigurationException(e);
}
}