Project

General

Profile

Actions

Wiki » History » Revision 14

« Previous | Revision 14/25 (diff) | Next »
Soh Keong, 04/16/2012 12:26 PM


Wiki

Development

URL: http://192.168.2.68:8080/russiaTest/

ems.get.locations

Arguments: 
1. type: cities, regions, countries or russia
2. plain: true or false
sample URL: http://emspost.ru/api/rest/?method=ems.get.locations&type=cities&plain=true

Example method call from interface RussiaEMSPost :
  my.com.eCosway.service.RussiaEMSPost post = new my.com.eCosway.service.impl.RussiaEMSPostImpl();
  my.com.eCosway.model.LocationResp res = post.getLocations(EMSCommonConstants.CITIES);

ems.calculate

Arguments:
1. from(mandatory except for international shipping): a point of departure
2. to(Required): point of destination
3. weight(mandatory): the weight of the cargo
4. type(mandatory for international delivery): the type of international departure: "doc" - documents (up to 2 kg), "att" - merchandise
sample URL: http://emspost.ru/api/rest/?method=ems.calculate&from=city--abakan&to=city--anadyr&weight=10&type=att

Example method call from interface RussiaEMSPost :
  my.com.eCosway.service.RussiaEMSPost post = new my.com.eCosway.service.impl.RussiaEMSPostImpl();
  my.com.eCosway.model.CalculateResp = post.getPriceAndTerm("city--abakan", "city--anadyr", 10,EMSCommonConstants.TYPE_OF_INTERNATIONAL_DEPARTURE_ATT);

SVN

Host: 192.168.2.11
Repository path: d:/source/russian-mall
connection type: pserver

Jar file

- commons-logging-1.1.1.jar
- ezmorph-0.8.1.jar
- gson-1.3.jar
- json-lib-0.9.jar
- json-rpc-1.0.jar

Updated by Soh Keong over 12 years ago · 14 revisions