Subversion Repositories SmartDukaan

Rev

Rev 20640 | Blame | Compare with Previous | Last modification | View Log | RSS feed

package com.bluedart.impl;

public class BluedartTest {

        public static void main(String[] args) throws Exception{
//              WayBillGeneration wbg = new WayBillGenerationLocator();
//              IWayBillGeneration gen = wbg.getWSHttpBinding_IWayBillGeneration();
//              WayBillGenerationRequest request = new WayBillGenerationRequest();
//              Consignee consignee = new Consignee();
//              consignee.setConsigneeAddress1("Addr1");
//              consignee.setConsigneeMobile("9990381569");
//              consignee.setConsigneeName("Amit");
//              consignee.setConsigneeAddress2("Noida");
//              consignee.setConsigneeAddress2("Uttar Pradesh");
//              consignee.setConsigneePincode("100011");
//              request.setConsignee(consignee);
//              Shipper shipper = new Shipper();
//              shipper.setCustomerAddress1("Arrd1");
//              shipper.setCustomerName("Amit");
//              shipper.setCustomerEmailID("amit.gupta@shop2020.in");
//              request.setShipper(shipper);
//              Services s = new Services();
//              s.setDeclaredValue(1000d);
//              s.setInvoiceNo("121D");
//              s.setActualWeight(330d);
//              
//              request.setServices(s);
//              String customercode="316326";
//              String password = "";
//              String isAdmin = "true";
//              String licenceKey="5f1740fdfb8196e7980faea7fe52dd0d";
//              String api_type="T";
//              String loginID = "FA316326";
//              String area="FAR";
//              String version = "1.3";
//              UserProfile profile = new UserProfile(api_type, area, customercode, isAdmin, licenceKey, loginID, password, version );
//              System.out.println(gen.generateWayBill(request, profile));
        }
}