serverFactory.setServiceFactory(serviceFactory);
protected JaxWsServerFactoryBean createServerFactory(Class<?> i) { JaxWsServerFactoryBean serverFactory = new JaxWsServerFactoryBean(); serverFactory.setBus(getBus()); serverFactory.setServiceFactory(createServiceFactory(i)); serverFactory.setBindingId(SoapBindingConstants.SOAP11_BINDING_ID); return serverFactory; }
svrFactory.setBus(bus); svrFactory.setAddress(address); svrFactory.setServiceFactory(serviceFactory); svrFactory.setStart(false); svrFactory.setServiceBean(implementor);
svrFactory.setBus(bus); svrFactory.setAddress(address); svrFactory.setServiceFactory(serviceFactory); svrFactory.setStart(false); svrFactory.setServiceBean(implementor);
protected void doPublish(String baseAddress) { // XXX: assume port 8080 by default since we don't know the actual port at startup String address = (baseAddress == null) ? "http://localhost:8080" : baseAddress; JaxWsServerFactoryBean svrFactory = new GeronimoJaxWsServerFactoryBean(); svrFactory.setBus(bus); svrFactory.setAddress(address + this.portInfo.getLocation()); svrFactory.setServiceFactory(serviceFactory); svrFactory.setStart(false); svrFactory.setServiceBean(implementor); if (HTTPBinding.HTTP_BINDING.equals(implInfo.getBindingType())) { svrFactory.setTransportId("http://cxf.apache.org/bindings/xformat"); } server = svrFactory.create(); init(); //org.apache.cxf.endpoint.Endpoint endpoint = getEndpoint(); if (getBinding() instanceof SOAPBinding && this.portInfo.getMtomFeatureInfo() != null) { ((SOAPBinding) getBinding()).setMTOMEnabled(this.portInfo.getMtomFeatureInfo().isEnabled()); } server.start(); }
serverFactory.setServiceFactory(serviceFactory);