Subversion Repositories SmartDukaan

Rev

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

Rev 10154 Rev 10158
Line 355... Line 355...
355
				try {
355
				try {
356
					while ((line = rd.readLine()) != null) {
356
					while ((line = rd.readLine()) != null) {
357
						System.out.println("Response " + line);
357
						System.out.println("Response " + line);
358
						if(line.equalsIgnoreCase("{\"status\":\"success\"}")){
358
						if(line.equalsIgnoreCase("{\"status\":\"success\"}")){
359
							inventoryServiceClient = new InventoryClient().getClient();
359
							inventoryServiceClient = new InventoryClient().getClient();
-
 
360
							try{
360
							inventoryServiceClient.addOrUpdateFlipkartInventorySnapshot(inventorysnapshotlist);
361
								inventoryServiceClient.addOrUpdateFlipkartInventorySnapshot(inventorysnapshotlist);
-
 
362
							}
-
 
363
							catch(TTransportException e){
-
 
364
								inventoryServiceClient = new InventoryClient().getClient();
-
 
365
								inventoryServiceClient.addOrUpdateFlipkartInventorySnapshot(inventorysnapshotlist);
-
 
366
							}
361
							inventorysnapshotlist = new ArrayList<FlipkartInventorySnapshot>();
367
							inventorysnapshotlist = new ArrayList<FlipkartInventorySnapshot>();
362
						}
368
						}
363
						else{
369
						else{
364
							feedResponse.append(line);
370
							feedResponse.append(line);
365
						}
371
						}