DSS Endpoint: https://hosted.datascopeapi.reuters.com/RestApi/v1/Authentication/RequestToken
DSS IP: 164.57.211.94
I could connect to DSS and get token with Postman via REST API .
But I couldn't get token via the DSS2Token example offered by Refinitiv. Under JDK 1.7 and JDK 1.8, it outputted error messenger:
main, handling exception: java.net.SocketException: Connection reset
%% Invalidated: [Session-4, SSL_NULL_WITH_NULL_NULL]
main, SEND TLSv1.2 ALERT: fatal, description = unexpected_message
main, WRITE: TLSv1.2 Alert, length = 2
main, Exception sending alert: java.net.SocketException: Connection reset by peer: socket write error
main, called closeSocket()
At the same time, I couldn't got any response from DSS with curl:
curl -v -H 'Content-Type:application/json' -XPOST https://hosted.datascopeapi.reuters.com/RestApi/v1/Authentication/RequestToken
it outputted:
* About to connect() to hosted.datascopeapi.reuters.com port 443 (#0)
* Trying 164.57.211.94...
* Connected to hosted.datascopeapi.reuters.com (164.57.211.94) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* CAfile: /etc/pki/tls/certs/ca-bundle.crt
CApath: none
* NSS error -5961 (PR_CONNECT_RESET_ERROR)
* TCP connection reset by peer
* Closing connection 0
curl: (35) TCP connection reset by peer
Howover, I could access the rebranded DSS with curl, as following:
curl -v -H 'Content-Type:application/json' -XPOST https://selectapi.datascope.refinitiv.com/RestApi/v1/Authentication/RequestToken
I tried many ways to connect to DSS, but it still didn't work.
Please tell me how to connect to DSS(hosted.datascopeapi.reuters.com) via REST API by Java