}
}
protected void doPublish(String address) {
ServerFactoryBean svrFactory = new ServerFactoryBean();
svrFactory.setBus(bus);
svrFactory.setAddress(address);
svrFactory.setServiceFactory(serviceFactory);
svrFactory.setStart(false);
configureObject(svrFactory);
// TODO: Replace with discovery mechanism!!
AbstractBindingInfoFactoryBean bindingFactory = null;
if (XMLConstants.NS_XML_FORMAT.equals(bindingURI)) {
bindingFactory = new XMLBindingInfoFactoryBean();
} else {
// Just assume soap otherwise...
bindingFactory = new JaxWsSoapBindingInfoFactoryBean();
}
svrFactory.setBindingFactory(bindingFactory);
server = svrFactory.create();
init();
if (implInfo.isWebServiceProvider()) {
getServer().setMessageObserver(new ProviderChainObserver(getEndpoint(), bus, implInfo));