Commit f57c54e72f3b32ba2f14ff6aa1b32905366825da

Authored by 潘钊
1 parent 0e620522

update...

src/main/java/com/bsth/CXFConfig.java
... ... @@ -12,6 +12,7 @@ import com.bsth.server_rs.logs.RealLogRestService;
12 12 import com.bsth.server_rs.schedule.plan.SchedulePlanService;
13 13 import com.bsth.server_rs.schedule.real.ScheduleRealService;
14 14 import com.bsth.server_ws.attendance.AttendanceServiceSoap;
  15 +import com.bsth.server_ws.electric_oil.OilServiceSoap;
15 16 import com.bsth.server_ws.park_station.CompanyServiceSoap;
16 17 import com.bsth.server_ws.waybill.LD_ServiceSoap;
17 18 import com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider;
... ... @@ -47,6 +48,8 @@ public class CXFConfig {
47 48 LD_ServiceSoap ld_serviceSoap;
48 49 @Autowired
49 50 AttendanceServiceSoap attendanceServiceSoap;
  51 + @Autowired
  52 + OilServiceSoap oilServiceSoap;
50 53  
51 54 @Bean
52 55 public Endpoint companyEndpoint() {
... ... @@ -72,6 +75,14 @@ public class CXFConfig {
72 75 return endpoint;
73 76 }
74 77  
  78 + @Bean
  79 + public Endpoint electricServiceEndpoint() {
  80 + EndpointImpl endpoint = new EndpointImpl(springBus(), oilServiceSoap);
  81 + endpoint.publish("/oilServiceSoap");
  82 + //endpoint.getInInterceptors().add(new AuthInterceptor());
  83 + return endpoint;
  84 + }
  85 +
75 86 @Autowired
76 87 ScheduleRealService scheduleRealService;
77 88 @Autowired
... ...