If validation is on in QuickFix/J, the received FIX message is validated against the FIX dictionary configured for Fix engine.
ValidateIncomingMessage| Allow to bypass the message validation (against the dictionary). Default is "Y".
Is there any utility class or method present in QuickFix/J which provides me this functionality to validate a sample Fix message against a Fix dictionary?
You want to use DataDictionary.validate()
DataDictionary dataDictionary = new DataDictionary( pathToDictionary );
Message quickfixMessage = new Message( message, dataDictionary );
dataDictionary.validate( quickfixMessage );
where message is the fix message. QuickfixJ includes some dictionaries in the etc folder.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With