public void setTransportId(String transportId) { serverFactory.setTransportId(transportId); }
public void setTransportId(String transportId) { serverFactory.setTransportId(transportId); }
serverFactoryBean.setAddress("/" + clazz.getSimpleName()); // equals check allowed, just keep using the constant serverFactoryBean.setTransportId("http://schemas.xmlsoap.org/soap/http"); serverFactoryBean.create();
bean.setTransportId(CxfBeanTransportFactory.TRANSPORT_ID); bean.setServiceClass(serviceBeans.get(0).getClass());
svrFactory.setTransportId("http://cxf.apache.org/bindings/xformat");
svrFactory.setTransportId("http://cxf.apache.org/bindings/xformat");
protected void run() { try { JaxWsServerFactoryBean factory = new JaxWsServerFactoryBean(); factory.setBus(getBus()); factory.setWsdlLocation("classpath:/swa-mime_jms.wsdl"); factory.setTransportId(SoapJMSConstants.SOAP_JMS_SPECIFICIATION_TRANSPORTID); factory.setServiceName(new QName("http://cxf.apache.org/swa", "SwAService")); factory.setEndpointName(new QName("http://cxf.apache.org/swa", "SwAServiceJMSPort")); factory.setAddress(ADDRESS + broker.getEncodedBrokerURL()); factory.setServiceBean(new SwAServiceImpl()); factory.create().start(); } catch (Exception e) { e.printStackTrace(); Thread.currentThread().interrupt(); } } }
@BeforeClass public static void startServer() { startBusAndJMS(JavaFirstNoWsdlTest.class); JaxWsServerFactoryBean svrFactory = new JaxWsServerFactoryBean(); svrFactory.setBus(bus); svrFactory.getFeatures().add(cff); svrFactory.setServiceClass(Hello.class); svrFactory.setAddress(SERVICE_ADDRESS); svrFactory.setTransportId(JMSSpecConstants.SOAP_JMS_SPECIFICATION_TRANSPORTID); svrFactory.setServiceBean(new HelloImpl()); svrFactory.create(); }
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(); }