Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
S
sap-service
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
曲欣亮
sap-service
Commits
3207fbd9
Commit
3207fbd9
authored
Aug 08, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
2e936403
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletion
+5
-1
ZMISD009SOCREATIONTask.java
...ava/com/schneider_distributor/ZMISD009SOCREATIONTask.java
+4
-1
application.yml
src/main/resources/application.yml
+1
-0
No files found.
src/main/java/com/schneider_distributor/ZMISD009SOCREATIONTask.java
View file @
3207fbd9
...
@@ -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
);
}
}
...
...
src/main/resources/application.yml
View file @
3207fbd9
xmlRoot
:
xml
xmlRoot
:
xml
systemId
:
system
systemId
:
system
WSDLPATH
:
WSDL
server
:
server
:
port
:
8080
port
:
8080
spring
:
spring
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment