| Line 96... |
Line 96... |
| 96 |
}
|
96 |
}
|
| 97 |
|
97 |
|
| 98 |
public static void main(String[] args) throws ClientProtocolException, TException{
|
98 |
public static void main(String[] args) throws ClientProtocolException, TException{
|
| 99 |
calculateinventory();
|
99 |
calculateinventory();
|
| 100 |
DefaultHttpClient httpclient = new DefaultHttpClient();
|
100 |
DefaultHttpClient httpclient = new DefaultHttpClient();
|
| 101 |
//httpclient = (DefaultHttpClient) WebClientWrapper.wrapClient(httpclient);
|
101 |
httpclient = (DefaultHttpClient) WebClientWrapper.wrapClient(httpclient);
|
| 102 |
httpclient.getCredentialsProvider().setCredentials(
|
102 |
httpclient.getCredentialsProvider().setCredentials(
|
| 103 |
new AuthScope("sandbox-api.flipkart.net", 443),
|
103 |
new AuthScope("sandbox-api.flipkart.net", 443),
|
| 104 |
new UsernamePasswordCredentials("og3yg5994bxbxxc1", "8a137068-417c-4e4f-ae95-9295ab938d88"));/// Test Server Access Keys
|
104 |
new UsernamePasswordCredentials("og3yg5994bxbxxc1", "8a137068-417c-4e4f-ae95-9295ab938d88"));/// Test Server Access Keys
|
| 105 |
//httpclient.getCredentialsProvider().setCredentials(
|
105 |
//httpclient.getCredentialsProvider().setCredentials(
|
| 106 |
// new AuthScope("sandbox-api.flipkart.net", 443),
|
106 |
// new AuthScope("sandbox-api.flipkart.net", 443),
|