Subversion Repositories SmartDukaan

Rev

Rev 9732 | Rev 9837 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 9732 Rev 9759
Line 106... Line 106...
106
		String dropshipUrl = "http://shipping.snapdeal.com/vendor/DROPSHIP/product-shipment/shippedData/fetch/?shippedStartDate="+startDate+"&shippedEndDate="+endDate+"&specialPanelAccess=&statusCode=COURIER_DELIVERED&statusColumn=deliveredOn&dispatchCategoryId=0&sCode=COURIER_DELIVERED";
106
		String dropshipUrl = "http://shipping.snapdeal.com/vendor/DROPSHIP/product-shipment/shippedData/fetch/?shippedStartDate="+startDate+"&shippedEndDate="+endDate+"&specialPanelAccess=&statusCode=COURIER_DELIVERED&statusColumn=deliveredOn&dispatchCategoryId=0&sCode=COURIER_DELIVERED";
107
		logger.info("Drop Ship Url "+dropshipUrl);
107
		logger.info("Drop Ship Url "+dropshipUrl);
108
 
108
 
109
		get = new HttpGet(dropshipUrl);
109
		get = new HttpGet(dropshipUrl);
110
 
110
 
-
 
111
		HttpClient client1 = new DefaultHttpClient();
-
 
112
		
111
		try {
113
		try {
112
			response = client.execute(get);
114
			response = client1.execute(get);
113
		} catch (Exception e) {
115
		} catch (Exception e) {
114
			logger.error("Unable to get Http Response for snapdeal dropship delivered orders", e);
116
			logger.error("Unable to get Http Response for snapdeal dropship delivered orders", e);
115
		} 
117
		} 
116
 
118
 
117
		try {
119
		try {
Line 165... Line 167...
165
		String oneShipUrl = "http://shipping.snapdeal.com/vendor/ONESHIP/product-shipment/shippedData/fetch/?shippedStartDate="+startDate+"&shippedEndDate="+endDate+"&specialPanelAccess=&statusCode=COURIER_DELIVERED&statusColumn=deliveredOn&dispatchCategoryId=0&sCode=COURIER_DELIVERED";
167
		String oneShipUrl = "http://shipping.snapdeal.com/vendor/ONESHIP/product-shipment/shippedData/fetch/?shippedStartDate="+startDate+"&shippedEndDate="+endDate+"&specialPanelAccess=&statusCode=COURIER_DELIVERED&statusColumn=deliveredOn&dispatchCategoryId=0&sCode=COURIER_DELIVERED";
166
		logger.info("One Ship Url "+oneShipUrl);
168
		logger.info("One Ship Url "+oneShipUrl);
167
 
169
 
168
		get = new HttpGet(oneShipUrl);	
170
		get = new HttpGet(oneShipUrl);	
169
 
171
 
-
 
172
		HttpClient client2 = new DefaultHttpClient();
-
 
173
		
170
		try {
174
		try {
171
			response = client.execute(get);
175
			response = client2.execute(get);
172
		} catch (Exception e) {
176
		} catch (Exception e) {
173
			logger.error("Unable to get Http Response for snapdeal oneship delivered orders", e);
177
			logger.error("Unable to get Http Response for snapdeal oneship delivered orders", e);
174
		} 
178
		} 
175
 
179
 
176
		try {
180
		try {