Requirements: We want End of Day price from DSS
Technology : Salesforce
DSS REST API Service : https://hosted.datascopeapi.reuters.com/RestApi/v1/Extractions/ExtractWithNotes
Issue : System.CalloutException: Read timed out
Expected API: Instead of timeout can you send us ExtractionID and Data "Example: ExtractionId='0x053b21c6eadb5821'" as a response body. we will retrieve data from DSS REST AOU "ExtractResult(ExtractionId='0x053b21c6eadb5821'
Sample code
request.setTimeout(120000); //Maximum in milliseconds
request.setMethod('POST');
request.setHeader('Content-Type', 'application/json');
request.setHeader('Prefer','respond-async');
request.setHeader('Authorization',userAuthResponseSessionToken);
HttpResponse response = http.send(request); //Getting Timeout from DSS
system.debug('Status Code is '+response.getStatusCode()); //Exception thorwn above line, hence don't get status code here as 202 Accepted or 200 etc
String resultBody = response.getBody();
System.debug(Logginglevel.DEBUG,response.getBody());