Subversion Repositories SmartDukaan

Rev

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

Rev 12428 Rev 12446
Line 282... Line 282...
282
					throw new Exception("Unable to read Http Response for snapdeal oneship delivered orders");
282
					throw new Exception("Unable to read Http Response for snapdeal oneship delivered orders");
283
				}
283
				}
284
 
284
 
285
				try {
285
				try {
286
					String resP = rd.readLine();
286
					String resP = rd.readLine();
-
 
287
					if(resP!=null && !resP.isEmpty()){
287
					jsonDataObj = new JSONArray("["+resP+"]");
288
						jsonDataObj = new JSONArray("["+resP+"]");
288
					JSONObject j1 = (JSONObject)jsonDataObj.get(0);
289
						JSONObject j1 = (JSONObject)jsonDataObj.get(0);
289
					jsonDataShip = new JSONArray(j1.get("jsonDataString").toString());
290
						jsonDataShip = new JSONArray(j1.get("jsonDataString").toString());
-
 
291
					}
290
				} catch (Exception e) {
292
				} catch (Exception e) {
291
					logger.error("Unable to extract Http Response for snapdeal oneship delivered orders", e);
293
					logger.error("Unable to extract Http Response for snapdeal oneship delivered orders", e);
292
					throw new Exception("Unable to extract Http Response for snapdeal oneship delivered orders");
294
					throw new Exception("Unable to extract Http Response for snapdeal oneship delivered orders");
293
				}
295
				}
294
 
296
 
Line 387... Line 389...
387
					throw new Exception("Unable to read Http Response for snapdeal oneship cancelled orders");
389
					throw new Exception("Unable to read Http Response for snapdeal oneship cancelled orders");
388
				}
390
				}
389
 
391
 
390
				try {
392
				try {
391
					String resP = rd.readLine();
393
					String resP = rd.readLine();
-
 
394
					if(resP!=null && !resP.isEmpty()){
392
					jsonDataObj = new JSONArray("["+resP+"]");
395
						jsonDataObj = new JSONArray("["+resP+"]");
393
					JSONObject j1 = (JSONObject)jsonDataObj.get(0);
396
						JSONObject j1 = (JSONObject)jsonDataObj.get(0);
394
					jsonDataShip = new JSONArray(j1.get("jsonDataString").toString());
397
						jsonDataShip = new JSONArray(j1.get("jsonDataString").toString());
-
 
398
					}
395
				} catch (Exception e) {
399
				} catch (Exception e) {
396
					logger.error("Unable to extract Http Response for snapdeal oneship cancelled orders", e);
400
					logger.error("Unable to extract Http Response for snapdeal oneship cancelled orders", e);
397
					throw new Exception("Unable to extract Http Response for snapdeal oneship cancelled orders");
401
					throw new Exception("Unable to extract Http Response for snapdeal oneship cancelled orders");
398
				} 
402
				} 
399
 
403