Commit 3207fbd9 authored by Quxl's avatar Quxl

x

parent 2e936403
...@@ -38,6 +38,9 @@ public class ZMISD009SOCREATIONTask { ...@@ -38,6 +38,9 @@ public class ZMISD009SOCREATIONTask {
@Value("${schneider.password}") @Value("${schneider.password}")
private String password; private String password;
@Value("${WSDLPATH}")
private String WSDLPATH;
@Transactional @Transactional
@Scheduled(cron="${cronSap009}") @Scheduled(cron="${cronSap009}")
...@@ -54,7 +57,7 @@ public class ZMISD009SOCREATIONTask { ...@@ -54,7 +57,7 @@ public class ZMISD009SOCREATIONTask {
File jarFile = home.getSource(); File jarFile = home.getSource();
File folder = jarFile.getParentFile(); File folder = jarFile.getParentFile();
String absolutePath = folder.getAbsolutePath(); String absolutePath = folder.getAbsolutePath();
String wsdlLocation = "file:///" + absolutePath + "/WSDL/Z_MI_SD_009_SO_CREATION.wsdl"; String wsdlLocation = "file:///" + absolutePath + "/" + WSDLPATH + "/Z_MI_SD_009_SO_CREATION.wsdl";
ZMISD009SOCREATION service = ServiceFactory.create(ZMISD009SOCREATION.class, wsdlLocation, "http://schneider-distributor.com/", "Z_MI_SD_009_SO_CREATIONService", username, password); ZMISD009SOCREATION service = ServiceFactory.create(ZMISD009SOCREATION.class, wsdlLocation, "http://schneider-distributor.com/", "Z_MI_SD_009_SO_CREATIONService", username, password);
this.sendData(service); this.sendData(service);
} }
......
xmlRoot: xml xmlRoot: xml
systemId: system systemId: system
WSDLPATH: WSDL
server: server:
port: 8080 port: 8080
spring: spring:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment