Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
be-dzxt-open
Overview
Overview
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
WeiCong
be-dzxt-open
Commits
9a4cc47c
Commit
9a4cc47c
authored
Sep 20, 2019
by
WeiCong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完善案例
parent
8475ce47
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
dzxt.jar
be-dzxt-test/lib/dzxt.jar
+0
-0
Elcs_720_001_01Test.java
...zxt-test/src/com/brilliance/pack/Elcs_720_001_01Test.java
+5
-2
No files found.
be-dzxt-test/lib/dzxt.jar
View file @
9a4cc47c
No preview for this file type
be-dzxt-test/src/com/brilliance/pack/Elcs_720_001_01Test.java
View file @
9a4cc47c
package
com
.
brilliance
.
pack
;
import
java.io.File
;
import
java.util.LinkedList
;
import
java.util.List
;
...
...
@@ -56,10 +57,12 @@ public class Elcs_720_001_01Test {
System
.
out
.
println
(
"Elcs_720_001_01完整报文=="
+
reqResult
.
getMessage
());
System
.
out
.
println
(
"Elcs_720_001_01模型json串=="
+
reqResult
.
getElcsModelForJson
());
//模拟人行请求报文文件
reqResult
.
saveMessageForXml
(
"D:/elcs.720.001.01.xml"
);
//这里模拟收到人行的报文(头部+签名域+报文体)进行解析
//支持三种API 1.字符串 2.字节数组 3.报文文件
//下面以Elcs_720_001_01完整报文字符串,调用
字符串
API解包
Result
resResult
=
MsgUtil
.
unPackMessage
(
reqResult
.
getMessage
(
));
//下面以Elcs_720_001_01完整报文字符串,调用
报文文件
API解包
Result
resResult
=
MsgUtil
.
unPackMessage
(
new
File
(
"D:/elcs.720.001.01.xml"
));
System
.
out
.
println
(
"本地保存完整报文:"
+
resResult
.
getMessageType
());
//下面可以根据指定的路径,将报文保存到本地
...
...
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