Subversion Repositories SmartDukaan

Rev

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

Rev 9482 Rev 9906
Line 184... Line 184...
184
					} catch (Exception e) {
184
					} catch (Exception e) {
185
						// TODO Auto-generated catch block
185
						// TODO Auto-generated catch block
186
						e.printStackTrace();
186
						e.printStackTrace();
187
					}	
187
					}	
188
					//in.shop2020.model.v1.catalog.CatalogService.Client catalogClient   = catalogServiceClient.getClient();
188
					//in.shop2020.model.v1.catalog.CatalogService.Client catalogClient   = catalogServiceClient.getClient();
189
					in.shop2020.model.v1.inventory.InventoryService.Client inventoryClient = inventoryServiceClient.getClient();
-
 
190
					List<AmazonFbaInventorySnapshot> allamazoninventory = new ArrayList<AmazonFbaInventorySnapshot>();
189
					List<AmazonFbaInventorySnapshot> allamazoninventory = new ArrayList<AmazonFbaInventorySnapshot>();
191
					try {
190
					try {
192
						while ((nextLine = reader.readNext()) != null) {
191
						while ((nextLine = reader.readNext()) != null) {
193
							// nextLine[] is an array of values from the line
192
							// nextLine[] is an array of values from the line
194
							//System.out.println(nextLine[0] +" "+ nextLine[1]+" " + nextLine[2]+" " + nextLine[3] +" "+ nextLine[4] +" " + nextLine[5]);
193
							//System.out.println(nextLine[0] +" "+ nextLine[1]+" " + nextLine[2]+" " + nextLine[3] +" "+ nextLine[4] +" " + nextLine[5]);
Line 201... Line 200...
201
									allamazoninventory.add(amazonfbainventorysnapshot); 
200
									allamazoninventory.add(amazonfbainventorysnapshot); 
202
 
201
 
203
						//		}
202
						//		}
204
							}
203
							}
205
						}
204
						}
-
 
205
						in.shop2020.model.v1.inventory.InventoryService.Client inventoryClient = inventoryServiceClient.getClient();
206
						inventoryClient.addOrUpdateAllAmazonFbaInventory(allamazoninventory);
206
						inventoryClient.addOrUpdateAllAmazonFbaInventory(allamazoninventory);
207
					} catch (IOException e) {
207
					} catch (IOException e) {
208
						// TODO Auto-generated catch block
208
						// TODO Auto-generated catch block
209
						e.printStackTrace();
209
						e.printStackTrace();
210
					} catch (TException e) {
210
					} catch (TException e) {