Wiki » History » Version 14
Soh Keong, 04/16/2012 12:26 PM
1 | 1 | Soh Keong | h1. Wiki |
---|---|---|---|
2 | |||
3 | |||
4 | 2 | Soh Keong | *Development* |
5 | <pre> |
||
6 | 6 | Soh Keong | URL: http://192.168.2.68:8080/russiaTest/ |
7 | 2 | Soh Keong | </pre> |
8 | |||
9 | 6 | Soh Keong | *ems.get.locations* |
10 | 2 | Soh Keong | <pre> |
11 | 6 | Soh Keong | Arguments: |
12 | 1. type: cities, regions, countries or russia |
||
13 | 2. plain: true or false |
||
14 | 8 | Soh Keong | sample URL: http://emspost.ru/api/rest/?method=ems.get.locations&type=cities&plain=true |
15 | 1 | Soh Keong | |
16 | 14 | Soh Keong | Example method call from interface RussiaEMSPost : |
17 | 6 | Soh Keong | my.com.eCosway.service.RussiaEMSPost post = new my.com.eCosway.service.impl.RussiaEMSPostImpl(); |
18 | 14 | Soh Keong | my.com.eCosway.model.LocationResp res = post.getLocations(EMSCommonConstants.CITIES); |
19 | 6 | Soh Keong | </pre> |
20 | 2 | Soh Keong | |
21 | 6 | Soh Keong | *ems.calculate* |
22 | <pre> |
||
23 | 7 | Soh Keong | Arguments: |
24 | 1. from(mandatory except for international shipping): a point of departure |
||
25 | 2. to(Required): point of destination |
||
26 | 3. weight(mandatory): the weight of the cargo |
||
27 | 1 | Soh Keong | 4. type(mandatory for international delivery): the type of international departure: "doc" - documents (up to 2 kg), "att" - merchandise |
28 | 8 | Soh Keong | sample URL: http://emspost.ru/api/rest/?method=ems.calculate&from=city--abakan&to=city--anadyr&weight=10&type=att |
29 | |||
30 | 14 | Soh Keong | Example method call from interface RussiaEMSPost : |
31 | 8 | Soh Keong | my.com.eCosway.service.RussiaEMSPost post = new my.com.eCosway.service.impl.RussiaEMSPostImpl(); |
32 | 14 | Soh Keong | my.com.eCosway.model.CalculateResp = post.getPriceAndTerm("city--abakan", "city--anadyr", 10,EMSCommonConstants.TYPE_OF_INTERNATIONAL_DEPARTURE_ATT); |
33 | 7 | Soh Keong | |
34 | 1 | Soh Keong | </pre> |
35 | |||
36 | 9 | Soh Keong | *SVN* |
37 | <pre> |
||
38 | 14 | Soh Keong | Host: 192.168.2.11 |
39 | Repository path: d:/source/russian-mall |
||
40 | connection type: pserver |
||
41 | 12 | Soh Keong | </pre> |
42 | 11 | Soh Keong | |
43 | *Jar file* |
||
44 | <pre> |
||
45 | - commons-logging-1.1.1.jar |
||
46 | - ezmorph-0.8.1.jar |
||
47 | - gson-1.3.jar |
||
48 | - json-lib-0.9.jar |
||
49 | - json-rpc-1.0.jar |
||
50 | </pre> |