Specification » History » Version 5
Soh Keong, 11/19/2020 11:48 AM
1 | 1 | Soh Keong | {{toc}} |
---|---|---|---|
2 | |||
3 | h1. Specification |
||
4 | |||
5 | h2. Programming Guide |
||
6 | |||
7 | h3. Jar version |
||
8 | |||
9 | |_. version |_. Description | |
||
10 | 4 | Soh Keong | | 1.13.1 | Init | |
11 | 5 | Soh Keong | | 1.13.2 | Added Delivery | |
12 | 1 | Soh Keong | |
13 | h3. Jar File Download |
||
14 | |||
15 | 5 | Soh Keong | "Jar":/redmine/attachments/download/519/momService-1.13.2.jar |
16 | 1 | Soh Keong | "Lib":/redmine/attachments/download/515/lib.rar |
17 | "Properties":/redmine/attachments/download/516/service.properties |
||
18 | |||
19 | h3. properties file |
||
20 | |||
21 | * *service.properties* |
||
22 | |||
23 | # *json.url* - Cosway dotnet's URL |
||
24 | # *json.key* - for encryption |
||
25 | # *connection.timeout* - set connection timeout |
||
26 | # *connection.read.timeout* - set connection read timeout |
||
27 | |||
28 | |||
29 | h1. Methods |
||
30 | |||
31 | h2. MOM Order |
||
32 | 2 | Soh Keong | |
33 | <pre> |
||
34 | com.ecosway.cosway.momwcf.service.MomService service = new com.ecosway.cosway.momwcf.service.MomService(); |
||
35 | </pre> |
||
36 | |||
37 | h3. getMomBean |
||
38 | |||
39 | <pre> |
||
40 | com.ecosway.cosway.momwcf.model.MomHeaderBean momBean = service.getMomBean(Connection conn, String orderId); |
||
41 | </pre> |
||
42 | |||
43 | h3. addOrder |
||
44 | |||
45 | <pre> |
||
46 | com.ecosway.cosway.momwcf.model.ResultBean resultBean = service.addOrder(MomHeaderBean bean) |
||
47 | </pre> |
||
48 | |||
49 | * *com.ecosway.cosway.momwcf.model.ResultBean* |
||
50 | > * *errCode* - String |
||
51 | > * *errMessage* - String |