Subversion Repositories SmartDukaan

Rev

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

Rev 9415 Rev 9417
Line 302... Line 302...
302
			// TODO Auto-generated catch block
302
			// TODO Auto-generated catch block
303
			e.printStackTrace();
303
			e.printStackTrace();
304
		}
304
		}
305
		in.shop2020.model.v1.order.TransactionService.Client transactionClient = null;
305
		in.shop2020.model.v1.order.TransactionService.Client transactionClient = null;
306
		try {
306
		try {
307
			transactionClient = new TransactionClient().getClient();
307
			transactionClient = new TransactionClient("support_transaction_service_server_host","transaction_service_server_port").getClient();
308
		} catch (TTransportException e) {
308
		} catch (TTransportException e) {
309
			// TODO Auto-generated catch block
309
			// TODO Auto-generated catch block
310
			e.printStackTrace();
310
			e.printStackTrace();
311
		}
311
		}
312
		SnapdealInventoryItem inventory_item = null;
312
		SnapdealInventoryItem inventory_item = null;
Line 498... Line 498...
498
				}
498
				}
499
				SnapdealInventoryItem snapdealinventoryitem = new SnapdealInventoryItem();
499
				SnapdealInventoryItem snapdealinventoryitem = new SnapdealInventoryItem();
500
				snapdealinventoryitem.setAvailability(sent_inventory);
500
				snapdealinventoryitem.setAvailability(sent_inventory);
501
				snapdealinventoryitem.setItem_id(Long.parseLong(inventory.getSellerSku()));
501
				snapdealinventoryitem.setItem_id(Long.parseLong(inventory.getSellerSku()));
502
				snapdealinventoryitem.setLastUpdatedOnSnapdeal(time);
502
				snapdealinventoryitem.setLastUpdatedOnSnapdeal(time);
-
 
503
				try{
503
				inventoryClient.addOrUpdateSnapdealInventoryForItem(snapdealinventoryitem);
504
					inventoryClient.addOrUpdateSnapdealInventoryForItem(snapdealinventoryitem);
-
 
505
				}
-
 
506
				catch(TTransportException e){
-
 
507
					new InventoryClient().getClient();
-
 
508
					inventoryClient.addOrUpdateSnapdealInventoryForItem(snapdealinventoryitem);
-
 
509
				}
504
				iterator++;
510
				iterator++;
505
			}
511
			}
506
			else{
512
			else{
507
				continue;
513
				continue;
508
			}
514
			}