| | |
| | | import org.apache.cxf.bus.spring.SpringBus; |
| | | import org.apache.cxf.jaxws.EndpointImpl; |
| | | import org.apache.cxf.transport.servlet.CXFServlet; |
| | | import org.jeecg.modules.wms.service.ReceiveWMSScanItemListService; |
| | | import org.jeecg.modules.wms.service.impl.ReceiveWMSScanItemListServiceImpl; |
| | | import org.jeecg.modules.wms.service.MESWebServiceSoap; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.boot.web.servlet.ServletRegistrationBean; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Configuration; |
| | |
| | | |
| | | @Configuration |
| | | public class WebServiceServerConfig { |
| | | @Autowired |
| | | private MESWebServiceSoap webServiceSoap; |
| | | |
| | | @Bean(name = Bus.DEFAULT_BUS_ID) |
| | | public Bus springBus() { |
| | |
| | | } |
| | | |
| | | @Bean |
| | | public ReceiveWMSScanItemListService receiveWMSScanItemListService() { |
| | | return new ReceiveWMSScanItemListServiceImpl(); |
| | | } |
| | | |
| | | @Bean |
| | | public Endpoint endpoint() { |
| | | // 参数二,是SEI实现类对象 |
| | | Endpoint endpoint = new EndpointImpl(this.springBus(), this.receiveWMSScanItemListService()); |
| | | Endpoint endpoint = new EndpointImpl(this.springBus(), webServiceSoap); |
| | | // 发布服务 |
| | | endpoint.publish("/ReceiveWMSScanItemList"); |
| | | endpoint.publish("/MESWebService"); |
| | | return endpoint; |
| | | } |
| | | } |