| Line 27... |
Line 27... |
| 27 |
|
27 |
|
| 28 |
}
|
28 |
}
|
| 29 |
int updateInventory(long stock,String supc) throws ClientProtocolException, IOException{
|
29 |
int updateInventory(long stock,String supc) throws ClientProtocolException, IOException{
|
| 30 |
HttpPost post = new HttpPost("http://seller.snapdeal.com/inventory/update");
|
30 |
HttpPost post = new HttpPost("http://seller.snapdeal.com/inventory/update");
|
| 31 |
List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
|
31 |
List<NameValuePair> nameValuePairs = new ArrayList<NameValuePair>();
|
| - |
|
32 |
System.out.println("Calling update inventory: Supc: "+supc+ " to be update stock: "+ stock);
|
| 32 |
nameValuePairs.add(new BasicNameValuePair("changedField",
|
33 |
nameValuePairs.add(new BasicNameValuePair("changedField",
|
| 33 |
"inventory"));
|
34 |
"inventory"));
|
| 34 |
nameValuePairs.add(new BasicNameValuePair("changedValue",
|
35 |
nameValuePairs.add(new BasicNameValuePair("changedValue",
|
| 35 |
String.valueOf(stock)));
|
36 |
String.valueOf(stock)));
|
| 36 |
nameValuePairs.add(new BasicNameValuePair("supc",
|
37 |
nameValuePairs.add(new BasicNameValuePair("supc",
|