Project

General

Profile

Wiki » History » Revision 9

Revision 8 (Soh Keong, 04/16/2012 10:16 AM) → Revision 9/25 (Soh Keong, 04/16/2012 10:26 AM)

h1. Wiki 


 *Development* 
 <pre> 
 URL: http://192.168.2.68:8080/russiaTest/ 
 </pre> 

 *ems.get.locations* 
 <pre> 
 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 "russia_ems.jar" : 
   my.com.eCosway.service.RussiaEMSPost post = new my.com.eCosway.service.impl.RussiaEMSPostImpl(); 
   my.com.eCosway.model.LocationResp res = post.getLocations(); 
 </pre> 

 *ems.calculate* 
 <pre> 
 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 "russia_ems.jar" : 
   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,IntlDeptType.TYPE_OF_INTERNATIONAL_DEPARTURE_ATT); 
 
 </pre> 

 *SVN*