简税合并版
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
jianshui-all/jianshui-admin/src/main/java/com/jianshui/api/config/WebServiceConfig.java

46 lines
1.4 KiB

2 years ago
package com.jianshui.api.config;
2 years ago
// import com.jianshui.api.controller.webservice.income.v1.InvoiceCheckWebService;
import com.jianshui.api.controller.webservice.income.v1.impl.InvoiceCheckWebServiceImpl;
2 years ago
import org.apache.cxf.Bus;
import org.apache.cxf.bus.spring.SpringBus;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.apache.cxf.jaxws.EndpointImpl;
import javax.xml.ws.Endpoint;
2 years ago
import javax.xml.ws.handler.soap.SOAPHandler;
2 years ago
@Configuration
public class WebServiceConfig {
2 years ago
// @Autowired
// private InvoiceCheckWebService invoiceCheckWebService;
2 years ago
@Autowired
2 years ago
private InvoiceCheckWebServiceImpl invoiceCheckWebService;
2 years ago
@Bean(name = Bus.DEFAULT_BUS_ID)
public SpringBus springBus() {
return new SpringBus();
}
2 years ago
@Bean
public WebserviceResponseHandler webserviceResponseHandler() {
return new WebserviceResponseHandler();
}
2 years ago
@Bean
public Endpoint endpoint() {
2 years ago
// EndpointImpl endpoint = new EndpointImpl(springBus(), invoiceCheckWebService);
2 years ago
EndpointImpl endpoint = new EndpointImpl(springBus(), invoiceCheckWebService);
2 years ago
WebserviceResponseHandler webserviceResponseHandler = webserviceResponseHandler();
// endpoint.getHandlers().add(webserviceResponseHandler);
2 years ago
endpoint.publish("/income/v1/check");
return endpoint;
}
}