Subversion Repositories SmartDukaan

Rev

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

Rev 10368 Rev 10369
Line 943... Line 943...
943
					e.printStackTrace();
943
					e.printStackTrace();
944
				}
944
				}
945
				System.out.println("posting response" + feedresponse);
945
				System.out.println("posting response" + feedresponse);
946
 
946
 
947
			}
947
			}
948
			in.shop2020.model.v1.order.TransactionService.Client transactionClient = null;
-
 
949
			try {
-
 
950
				transactionClient = new TransactionClient("support_transaction_service_server_host","transaction_service_server_port").getClient();
-
 
951
				transactionClient.updateSourceDetailTimestamp(7, lastSentInventoryTime);
-
 
952
			} catch (Exception e) {
-
 
953
				try {
-
 
954
					transactionClient = new TransactionClient("support_transaction_service_server_host","transaction_service_server_port").getClient();
-
 
955
					transactionClient.updateSourceDetailTimestamp(7, lastSentInventoryTime);
-
 
956
				} catch (Exception ex) {
-
 
957
					ex.printStackTrace();
-
 
958
				}
-
 
959
			}
-
 
960
			int retry = 24;
948
			int retry = 24;
961
			boolean feedsuccess =false;
949
			boolean feedsuccess =false;
962
			while(retry>0){
950
			while(retry>0){
963
				Thread.sleep(5*60*1000);
951
				Thread.sleep(5*60*1000);
964
				try {
952
				try {
Line 980... Line 968...
980
			}
968
			}
981
			String emailSubjectTxt;
969
			String emailSubjectTxt;
982
			String text;
970
			String text;
983
			String tableHeader;
971
			String tableHeader;
984
			if(feedsuccess){
972
			if(feedsuccess){
-
 
973
				in.shop2020.model.v1.order.TransactionService.Client transactionClient = null;
-
 
974
				try {
-
 
975
					transactionClient = new TransactionClient("support_transaction_service_server_host","transaction_service_server_port").getClient();
-
 
976
					transactionClient.updateSourceDetailTimestamp(7, lastSentInventoryTime);
-
 
977
				} catch (Exception e) {
-
 
978
					try {
-
 
979
						transactionClient = new TransactionClient("support_transaction_service_server_host","transaction_service_server_port").getClient();
-
 
980
						transactionClient.updateSourceDetailTimestamp(7, lastSentInventoryTime);
-
 
981
					} catch (Exception ex) {
-
 
982
						ex.printStackTrace();
-
 
983
					}
-
 
984
				}
985
				InventoryClient inventoryServiceClient = new InventoryClient();
985
				InventoryClient inventoryServiceClient = new InventoryClient();
986
				in.shop2020.model.v1.inventory.InventoryService.Client inventoryClient = inventoryServiceClient.getClient();
986
				in.shop2020.model.v1.inventory.InventoryService.Client inventoryClient = inventoryServiceClient.getClient();
987
				try {
987
				try {
988
					inventoryClient.addOrUpdateAllSnapdealInventory(snapdealInventoryItemList);
988
					inventoryClient.addOrUpdateAllSnapdealInventory(snapdealInventoryItemList);
989
				} catch (TException e) {
989
				} catch (TException e) {