Project

General

Profile

Specification » History » Revision 5

Revision 4 (Soh Keong, 11/18/2020 04:51 PM) → Revision 5/38 (Soh Keong, 11/19/2020 11:48 AM)

{{toc}} 

 h1. Specification 

 h2. Programming Guide 

 h3. Jar version  

 |_. version |_. Description    | 
 | 1.13.1      | Init             | 
 | 1.13.2      | Added Delivery | 

 h3. Jar File Download 

 "Jar":/redmine/attachments/download/519/momService-1.13.2.jar "Jar":/redmine/attachments/download/518/momService-1.13.1.jar 
 "Lib":/redmine/attachments/download/515/lib.rar 
 "Properties":/redmine/attachments/download/516/service.properties 

 h3. properties file 

 * *service.properties* 

 # *json.url*                  - Cosway dotnet's URL 
 # *json.key*                  - for encryption  
 # *connection.timeout*        - set connection timeout 
 # *connection.read.timeout* - set connection read timeout 


 h1. Methods 

 h2. MOM Order 

 <pre> 
 com.ecosway.cosway.momwcf.service.MomService service = new com.ecosway.cosway.momwcf.service.MomService(); 
 </pre> 

 h3. getMomBean 

 <pre> 
 com.ecosway.cosway.momwcf.model.MomHeaderBean momBean = service.getMomBean(Connection conn, String orderId); 
 </pre> 

 h3. addOrder 

 <pre> 
 com.ecosway.cosway.momwcf.model.ResultBean resultBean = service.addOrder(MomHeaderBean bean) 
 </pre> 

 * *com.ecosway.cosway.momwcf.model.ResultBean* 
 > * *errCode*         - String 
 > * *errMessage*      - String