sfb.setSchemaLocations(schemaLocations);
ReflectionServiceFactoryBean svcFac = sfb.getServiceFactory();
initServiceFactory(svcFac);
CxfInboundMessageProcessor processor = new CxfInboundMessageProcessor();
processor.setMuleContext(muleContext);
configureMessageProcessor(sfb, processor);
sfb.setStart(false);
Bus bus = configuration.getCxfBus();
sfb.setBus(bus);
svcFac.setBus(bus);
Configurer configurer = bus.getExtension(Configurer.class);
if (null != configurer)
{
configurer.configureBean(svcFac.getEndpointName().toString(), sfb);
}
if (validationEnabled)
{
properties.put("schema-validation-enabled", "true");
}
// If there's a soapVersion defined then the corresponding bindingId will be set
if(soapVersion != null)
{
sfb.setBindingId(CxfUtils.getBindingIdForSoapVersion(soapVersion));
}
sfb.setProperties(properties);
sfb.setInvoker(createInvoker(processor));
server = sfb.create();
CxfUtils.removeInterceptor(server.getEndpoint().getService().getInInterceptors(), OneWayProcessorInterceptor.class.getName());
configureServer(server);
processor.setBus(sfb.getBus());
processor.setServer(server);
processor.setProxy(isProxy());
processor.setWSDLQueryHandler(getWSDLQueryHandler());
return processor;
}