For a deeper look into our DataScope Select SOAP API, look into:

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
1 0 0 2

Getting HttpResponseException

Getting HttpResponseException while getting token with DSS2TokenProxyAuth:

org.apache.http.client.HttpResponseException: Proxy Authentication Required at org.apache.http.impl.client.AbstractResponseHandler.handleResponse(AbstractResponseHandler.java:70) at org.apache.http.impl.client.BasicResponseHandler.handleResponse(BasicResponseHandler.java:66) at org.apache.http.impl.client.BasicResponseHandler.handleResponse(BasicResponseHandler.java:52) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:223) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:165) at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:140) at com.thomsonreuters.dss.api.example.DSS2TokenProxyAuth.getSessionTokenProxyAuth(DSS2TokenProxyAuth.java:105) at com.thomsonreuters.dss.api.example.DSS2TokenProxyAuth.main(DSS2TokenProxyAuth.java:55)


Can someone please suggest on this.

dss-rest-apidatascope-selectdsshttp
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

1 Answer

Upvotes
Accepted
13.7k 26 8 12

@sridhardingari,

All we can conclude from the response exception is that the proxy you are using requires authentication, and that the authentication failed. You are using one of our samples that is indeed meant for use with a proxy that requires authentication.

A few paths to explore to solve the issue:

  • First of all , when running that sample, did you enter all the required parameters in the following order: DSS Username, DSS Password, Proxy Hostname, Proxy Port, Proxy Username, Proxy Password ?
  • Are you sure your proxy username and password are valid ?

After these (fairly obvious) suggestions, I'd like to add that this sample is intended for a proxy that only requires a username and password. Some proxies use more sophisticated authentications mechanisms that are beyond the simple capabilities of this sample. If that is the case you will have to adapt the sample to your proxy.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea