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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
1 0 1 2

DSS API Authentication Error

Please can someone help me with the authentication error that the client is getting for DSS API , It is very urgent hence seeking urgent assistance, see attached screenshot.

dss-rest-apidatascope-selectdss
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

@divya.suresh, I tried looking at the code, but the code that generates the error is hidden, as well as the error message. That said, the following does not seem right :

  • Several authentication requests, in lines 37, 40 and 42.
  • Several extraction contexts, in lines 37 and 42.

This code looks like it is for scheduled requests. We have 3 tutorials (and corresponding sample code) that describe this in C#, starting with this one. They might be of help.

In a nutshell, the initial part would look somewhat like this:

static void Main()
{
    //Connect and authenticate to the DSS server:
    Uri dssUri = new Uri("https://hosted.datascopeapi.reuters.com/RestApi/v1/");
    string dssUserName = "YourUserId";
    string dssUserPassword = "YourPassword";
    ExtractionsContext extractionsContext = new ExtractionsContext(dssUri, dssUserName, dssUserPassword);            
    string sessionToken = extractionsContext.SessionToken;
    Console.WriteLine("Returned session token: " + sessionToken);

After that, the other operations will simply refer to the extractions context. Example:

//Create a new (empty) instrument list:
var instrumentList = new InstrumentList { Name = "myInstrumentListName" };
extractionsContext.InstrumentListOperations.Create(instrumentList);

Etc.

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