Commit f57c54e72f3b32ba2f14ff6aa1b32905366825da
1 parent
0e620522
update...
Showing
1 changed file
with
11 additions
and
0 deletions
src/main/java/com/bsth/CXFConfig.java
| @@ -12,6 +12,7 @@ import com.bsth.server_rs.logs.RealLogRestService; | @@ -12,6 +12,7 @@ import com.bsth.server_rs.logs.RealLogRestService; | ||
| 12 | import com.bsth.server_rs.schedule.plan.SchedulePlanService; | 12 | import com.bsth.server_rs.schedule.plan.SchedulePlanService; |
| 13 | import com.bsth.server_rs.schedule.real.ScheduleRealService; | 13 | import com.bsth.server_rs.schedule.real.ScheduleRealService; |
| 14 | import com.bsth.server_ws.attendance.AttendanceServiceSoap; | 14 | import com.bsth.server_ws.attendance.AttendanceServiceSoap; |
| 15 | +import com.bsth.server_ws.electric_oil.OilServiceSoap; | ||
| 15 | import com.bsth.server_ws.park_station.CompanyServiceSoap; | 16 | import com.bsth.server_ws.park_station.CompanyServiceSoap; |
| 16 | import com.bsth.server_ws.waybill.LD_ServiceSoap; | 17 | import com.bsth.server_ws.waybill.LD_ServiceSoap; |
| 17 | import com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider; | 18 | import com.fasterxml.jackson.jaxrs.json.JacksonJsonProvider; |
| @@ -47,6 +48,8 @@ public class CXFConfig { | @@ -47,6 +48,8 @@ public class CXFConfig { | ||
| 47 | LD_ServiceSoap ld_serviceSoap; | 48 | LD_ServiceSoap ld_serviceSoap; |
| 48 | @Autowired | 49 | @Autowired |
| 49 | AttendanceServiceSoap attendanceServiceSoap; | 50 | AttendanceServiceSoap attendanceServiceSoap; |
| 51 | + @Autowired | ||
| 52 | + OilServiceSoap oilServiceSoap; | ||
| 50 | 53 | ||
| 51 | @Bean | 54 | @Bean |
| 52 | public Endpoint companyEndpoint() { | 55 | public Endpoint companyEndpoint() { |
| @@ -72,6 +75,14 @@ public class CXFConfig { | @@ -72,6 +75,14 @@ public class CXFConfig { | ||
| 72 | return endpoint; | 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 | @Autowired | 86 | @Autowired |
| 76 | ScheduleRealService scheduleRealService; | 87 | ScheduleRealService scheduleRealService; |
| 77 | @Autowired | 88 | @Autowired |