Re: [Quickfix-developers] How to manage Required tag missing
Brought to you by:
orenmnero
From: Oren M. <ore...@ya...> - 2004-02-18 11:40:02
|
Sutee, If you want a field to be optional, you should check for its precense before pulling it out. By pulling out the message without verifying whether or not if it exists, forces QuickFIX to treat it as a required field. You should try something like this: SenderSubID senderSubID = new SenderSubID(); if( order.getHeader().isSet( senderSubID ) ) { order.get( senderSubID ); } --- Sutee Gettupan <su...@si...> wrote: > Dear all, > I develop my fix engine using C#, and I test it > with Banzai. I setting > my fix engine following below. > > [DEFAULT] > ConnectionType=acceptor > SocketAcceptPort=5001 > FileStorePath=store > StartTime=00:00:00 > EndTime=23:00:00 > > [SESSION] > BeginString=FIX.4.0 > SenderCompID=XYZ > TargetCompID=CLIENT1 > UseDataDictionary=Y > DataDictionary=spec/FIX40.xml > ValidateFieldsOutOfOrder=N > ValidateFieldsHaveValues=N > > How can I manage Require tag missing, when I > receive message from > Banzai. In my idea, some tags that define in xml > spec are not require. But > when I receive message, it rejects message from > banzai. For example code, > that I use in my engine to get some field is > > string sSenderSubID = > order.getHeader().getField(new > SenderSubID()).getValue(); > > Is this correct?, If It's wrong, please advise > me to correct it. > > Best Regards, > Sutee Gettupan > Developer > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps > Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers __________________________________ Do you Yahoo!? Yahoo! Mail SpamGuard - Read only the mail you want. http://antispam.yahoo.com/tools |