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

Overview |  Quickstart |  Documentation |  Downloads |  Tutorials

question

Upvotes
Accepted
1 0 0 3

Why am I getting a SecurityFaultException

Hi,

i try the sample in the "Quick Start" of the SOAP api DSS, "GetVersion" méthode work but when I try another one like "ValidateInstruments" I got the FaultException with "A security erro has occured." message.

code below:

var identifier = new InstrumentIdentifier

{

IdentifierValue = "TRI.N", IdentifierType = "RIC"

};

var validateInstrumentsRequest = new ValidateInstrumentsRequest

{

CredentialsHeader = _credentials,

request = new InstrumentValidationRequest

{

Identifiers = new[] { identifier }

}

};

var validateInstrumentsResponse = client.ValidateInstruments(validateInstrumentsRequest); _credentials = validateInstrumentsResponse.CredentialsHeader;

any ideas ?

Laurent.

dss-rest-apidssdatascope-selectapierrorc#soap-api
icon clock
10 |1500

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

1 Answer

Upvotes
Accepted
11.3k 25 8 14

Hi,

I think it is the user authentication issue. The GetVersion method works, because it does not require authentication. Please verify if the DSS username and password is configured correctly in the application and can be used to login to the DSS Web GUI.

Please note that DSS SOAP API is in maintenance mode. Even though SOAP API version will be supported in the future, DSS REST API is considered the strategic delivery mechanism and the new content/capabilities like C&E and Tick are built solely on REST only. If this is new code, it should really be built to use the REST API. For more information about DSS REST API, please see this tutorial

icon clock
10 |1500

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