Could not find destination factory for transport解决方法
在使用cxf开发webservice时,启动Server时遇到Could not find destination factory for transport http://schemas.xmlsoap.org/soap/http错误。Server代码如下:
OrderProcess orderProcess = new OrderProcessImpl();GZIPFeature gzip = new GZIPFeature();gzip.setThreshold(1);JaxWsServerFactoryBean server = new JaxWsServerFactoryBean();server.setServiceBean(orderProcess);server.setAddress("http://localhost:8080/feature/OrderProcessGZIP");server.getFeatures().add(gzip);server.create();System.out.println("Server ready....");Thread.sleep(5 * 60 * 1000); System.out.println("Server exiting"); System.exit(0);