Subversion Repositories SmartDukaan

Rev

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

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