Project

General

Profile

Specification » History » Version 2

Soh Keong, 11/18/2020 12:33 PM

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