if (implInfo.isWebServiceProvider()) {
Class<?> type = implInfo.getProviderParameterType();
if (type.equals(SOAPMessage.class)) {
getService().getInInterceptors().add(new ProviderInDatabindingInterceptor(type));
// hack to get the SOAPMessage set before the SOAPHandlerInterceptor
ProviderOutDatabindingInterceptor out = new ProviderOutDatabindingInterceptor();
out.setPhase(Phase.PRE_PROTOCOL);
out.addBefore(SOAPHandlerInterceptor.class.getName());
getService().getOutInterceptors().add(out);
getService().getInInterceptors().add(new SAAJInInterceptor());
getService().getOutInterceptors().add(new SAAJOutInterceptor());
} else {
getService().getInInterceptors().add(new ProviderInDatabindingInterceptor(type));
getService().getOutInterceptors().add(new ProviderOutDatabindingInterceptor());
}
boolean messageMode = implInfo.getServiceMode().equals(javax.xml.ws.Service.Mode.MESSAGE);
if (getEndpointInfo() != null) {
for (BindingInfo bi : getEndpointInfo().getService().getBindings()) {