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.

Best Answer

  • 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