Subversion Repositories SmartDukaan

Rev

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

Rev 9759 Rev 9837
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();
111
		//HttpClient client1 = new DefaultHttpClient();
112
		
112
		
113
		try {
113
		try {
114
			response = client1.execute(get);
114
			response = client.execute(get);
115
		} catch (Exception e) {
115
		} catch (Exception e) {
116
			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);
117
		} 
117
		} 
118
 
118
 
119
		try {
119
		try {
Line 167... Line 167...
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";
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";
168
		logger.info("One Ship Url "+oneShipUrl);
168
		logger.info("One Ship Url "+oneShipUrl);
169
 
169
 
170
		get = new HttpGet(oneShipUrl);	
170
		get = new HttpGet(oneShipUrl);	
171
 
171
 
172
		HttpClient client2 = new DefaultHttpClient();
172
		//HttpClient client2 = new DefaultHttpClient();
173
		
173
		
174
		try {
174
		try {
175
			response = client2.execute(get);
175
			response = client.execute(get);
176
		} catch (Exception e) {
176
		} catch (Exception e) {
177
			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);
178
		} 
178
		} 
179
 
179
 
180
		try {
180
		try {