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
e6ee2c5f
Commit
e6ee2c5f
authored
Aug 01, 2019
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
e1e14bc6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
43 additions
and
0 deletions
+43
-0
MaterialMasterServiceErrorTest.java
src/test/java/test/MaterialMasterServiceErrorTest.java
+43
-0
No files found.
src/test/java/test/MaterialMasterServiceErrorTest.java
0 → 100644
View file @
e6ee2c5f
package
test
;
import
java.io.File
;
import
com.egolm.sso.services.material_master.Z_MT_SD_001_MATERIAL_MASTER
;
import
com.egolm.sso.util.DateUtil
;
import
com.egolm.sso.util.StringUtil
;
import
com.egolm.sso.util.XMLUtil
;
public
class
MaterialMasterServiceErrorTest
{
// public static void main(String[] args) throws Exception {
// String wsdlLocation = "http://10.204.15.9:8080/api/services/material_master?wsdl";
// String namespace = "http://material_master.sso.egolm.com";
// String serviceName = "MaterialMasterService";
// MaterialMasterService service = ServiceFactory.create(MaterialMasterService.class, wsdlLocation, namespace, serviceName);
// File folder = new File("C:\\Users\\Quxl\\Desktop\\error");
// File[] files = folder.listFiles();
// for(File file : files) {
// String XML = StringUtil.readText(file);
// Z_MT_SD_001_MATERIAL_MASTER Z_MT_SD_001_MATERIAL_MASTER = XMLUtil.toBeanByJxab(XML, Z_MT_SD_001_MATERIAL_MASTER.class);
// Z_MT_SD_001_MATERIAL_MASTER.getRECORD().getHEADER_SENDING().getDATUM();
// service.execute(Z_MT_SD_001_MATERIAL_MASTER);
// }
// }
public
static
void
main
(
String
[]
args
)
throws
Exception
{
File
folder
=
new
File
(
"C:\\Users\\Quxl\\Desktop\\error"
);
File
[]
files
=
folder
.
listFiles
();
for
(
File
file
:
files
)
{
try
{
System
.
out
.
print
(
file
.
getName
());
String
XML
=
StringUtil
.
readText
(
file
);
Z_MT_SD_001_MATERIAL_MASTER
Z_MT_SD_001_MATERIAL_MASTER
=
XMLUtil
.
toBeanByJxab
(
XML
,
Z_MT_SD_001_MATERIAL_MASTER
.
class
);
String
dateString
=
Z_MT_SD_001_MATERIAL_MASTER
.
getRECORD
().
getHEADER_SENDING
().
getDATUM
();
System
.
out
.
println
(
"----------"
+
DateUtil
.
parseDate
(
dateString
,
DateUtil
.
FMT_DATE
)
);
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
}
}
}
}
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