Re: [Quickfix-developers] beginner's validation question
Brought to you by:
orenmnero
From: Oren M. <or...@qu...> - 2004-10-28 14:14:20
|
Michael, QuickFIX does not validate outbound messages. Since you have total=20 control over those messages, it allows you to send whatever you like. =20= The counter-party who is better equipped to know what they can handle=20 can do the validation on the received message. If you really want to=20 validate a message before sending it, you can do so yourself by getting=20= a hold of the data dictionary for the session you will be sending on. =20= Something like so: Session* pSession =3D Session::lookupSession( sessionID ); if( pSession ) { try { pSession->getDataDictionary().validate( message ); Session::sendToTarget( message, sessionID ); } catch( std::exception& e ) { // failed validation } } Otherwise QuickFIX will only validate incoming messages, since these=20 are the ones that you do not have control over and could be potentially=20= damaging to your application. --oren On Oct 27, 2004, at 11:25 AM, Michael Raykh wrote: > For some reason messages that my app(very simlar to example apps from=20= > install) is sending are not being validated by quickFix. > > I do have UseDataDictionary=A0 and DataDictionary set.... > What am I doing wrong? > This email and any files transmitted with it are confidential and=20 > intended solely for the use of the individual or entity to whom they=20= > are addressed. If you have received this email in error please notify=20= > the system manager. This message contains confidential information and=20= > is intended only for the individual named. If you are not the named=20 > addressee you should not disseminate, distribute or copy this e-mail.=20= > =20= |