FIX3.02.03 · Released 22 November 2019
FIXfinPOWER Connect
Released in
3.02.03
22 November 2019
- Opened17 Oct
- Closed18 Oct
- Released22 Nov
Article 16460
Job J023144
Security Enquiry Interface; calling Centrix functions directly in a script may fail
Calling Centrix Security Enquiry Interface functions directly via a script may fail because credentials have not been set, or it may use the incorrect Cost Centre credentials (from whatever was last executed).
This occurs because using functions like finBL.SecurityEnquiry.Service_CentrixNZ.ExecuteWheelsSearch did not refresh the service credentials from the Cost Centre.
For example, the code below highlights where the request function is called directly (and fails):
Dim Request As ISSecurityEnquiryRequest_CentrixNZ_WheelsSearchDim Response As ISSecurityEnquiryResponse_CentrixNZ_WheelsSearchRequest = finBL.SecurityEnquiry.Service_CentrixNZ.CreateSecurityEnquiryRequest_CentrixNZ_WheelsSearch()With Request.PlateNumber = ""End WithMain = finBL.SecurityEnquiry.Service_CentrixNZ.ExecuteWheelsSearch(Request, Response)
The code below illustrates an alternate, and standard, approach to executing this request that works correctly:
Dim Request As ISSecurityEnquiryRequestDim Response As ISSecurityEnquiryResponseRequest = finBL.SecurityEnquiry.Service_CentrixNZ.CreateSecurityEnquiryRequest_CentrixNZ_WheelsSearch()With DirectCast(Request,ISSecurityEnquiryRequest_CentrixNZ_WheelsSearch).PlateNumber = ""End WithMain = finBL.SecurityEnquiry.ExecuteSecurityEnquiry(Request, Response)