Thread: [Quickfix-developers] Conditionally Required Fields / Business Message Reject
Brought to you by:
orenmnero
From: DKL-Gator <dea...@ya...> - 2008-09-09 11:47:43
|
Hello, How does quickfix know which fields are conditionally required (specifically 4.2). I do not want a certain field to be conditionally required when I receive an Execution Report with type of "canceled". Right now, quickfix is sending out a Business Message Reject for the conditionally required field of '41'. Thank you, Dean -- View this message in context: http://www.nabble.com/Conditionally-Required-Fields---Business-Message-Reject-tp19398397p19398397.html Sent from the QuickFIX - Dev mailing list archive at Nabble.com. |
From: DKL-Gator <dea...@ya...> - 2008-09-09 19:17:08
|
I assume there is nothing in the FIX42.xml file that I can change since the required field can only be Y or N and I also understand that I can check for the presence of the field before attempting to get it. I still don't understand how quickfix knows what is conditionally required. Thanks. DKL-Gator wrote: > > Hello, > > How does quickfix know which fields are conditionally required > (specifically 4.2). I do not want a certain field to be conditionally > required when I receive an Execution Report with type of "canceled". > Right now, quickfix is sending out a Business Message Reject for the > conditionally required field of '41'. > > Thank you, > Dean > > -- View this message in context: http://www.nabble.com/Conditionally-Required-Fields---Business-Message-Reject-tp19398397p19399269.html Sent from the QuickFIX - Dev mailing list archive at Nabble.com. |
From: Pierre El-k. <pi...@al...> - 2008-09-10 06:25:14
|
Hi When fields are set to required the Auto generating tools will generate the classes based on the xml file, this will resulting adding them required fields to the constructor of the class. In case you need the field to be required in special implementation of the FIX engine you could edit the xml file after generating the classes (preferred). In this way the test suit will still work since it is based on the standard xml files. Hobe this answers you question Hobe this helps -----Oprindelig meddelelse----- Fra: DKL-Gator [mailto:dea...@ya...] Sendt: 9. september 2008 21:17 Til: qui...@li... Emne: Re: [Quickfix-developers] Conditionally Required Fields / Business Message Reject QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html QuickFIX Support: http://www.quickfixengine.org/services.html I assume there is nothing in the FIX42.xml file that I can change since the required field can only be Y or N and I also understand that I can check for the presence of the field before attempting to get it. I still don't understand how quickfix knows what is conditionally required. Thanks. DKL-Gator wrote: > > Hello, > > How does quickfix know which fields are conditionally required > (specifically 4.2). I do not want a certain field to be conditionally > required when I receive an Execution Report with type of "canceled". > Right now, quickfix is sending out a Business Message Reject for the > conditionally required field of '41'. > > Thank you, > Dean > > -- View this message in context: http://www.nabble.com/Conditionally-Required-Fields---Business-Message-R eject-tp19398397p19399269.html Sent from the QuickFIX - Dev mailing list archive at Nabble.com. ------------------------------------------------------------------------ - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Quickfix-developers mailing list Qui...@li... https://lists.sourceforge.net/lists/listinfo/quickfix-developers |
From: DKL-Gator <dea...@ya...> - 2008-09-10 11:22:52
|
Hello, Thanks for your reply. What I meant to point out is that I don't want the field to be required at all nor conditionally required. The field is set to N in the xml. I believe what I was doing was attempting to "get" a field that wasn't there. So I need to check for the presence of the field with isSet before getting it. I was stuck on thinking that it had something to do with the xml file and that quickfix was doing something out of my control somehow :) Pierre El-khoury wrote: > > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > Hi > When fields are set to required the Auto generating tools will generate > the classes based on the xml file, this will resulting adding them > required fields to the constructor of the class. In case you need the > field to be required in special implementation of the FIX engine you > could edit the xml file after generating the classes (preferred). In > this way the test suit will still work since it is based on the standard > xml files. > > Hobe this answers you question > Hobe this helps > > -----Oprindelig meddelelse----- > Fra: DKL-Gator [mailto:dea...@ya...] > Sendt: 9. september 2008 21:17 > Til: qui...@li... > Emne: Re: [Quickfix-developers] Conditionally Required Fields / Business > Message Reject > > QuickFIX Documentation: > http://www.quickfixengine.org/quickfix/doc/html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > > I assume there is nothing in the FIX42.xml file that I can change since > the > required field can only be Y or N and I also understand that I can check > for > the presence of the field before attempting to get it. I still don't > understand how quickfix knows what is conditionally required. > > Thanks. > > > DKL-Gator wrote: >> >> Hello, >> >> How does quickfix know which fields are conditionally required >> (specifically 4.2). I do not want a certain field to be conditionally >> required when I receive an Execution Report with type of "canceled". >> Right now, quickfix is sending out a Business Message Reject for the >> conditionally required field of '41'. >> >> Thank you, >> Dean >> >> > > -- > View this message in context: > http://www.nabble.com/Conditionally-Required-Fields---Business-Message-R > eject-tp19398397p19399269.html > Sent from the QuickFIX - Dev mailing list archive at Nabble.com. > > > ------------------------------------------------------------------------ > - > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > > ------------------------------------------------------------------------- > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > _______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers > > -- View this message in context: http://www.nabble.com/Conditionally-Required-Fields---Business-Message-Reject-tp19398397p19411319.html Sent from the QuickFIX - Dev mailing list archive at Nabble.com. |
From: Mike G. <mg...@co...> - 2008-09-10 18:11:22
|
DKL-Gator wrote: > I believe what I was doing was attempting to "get" a field that wasn't there. > So I need to check for the presence of the field with isSet before getting it. You are correct: get() will throw a FieldNotFound exception if the field is not set. If FieldNotFound is thrown from the fromApp() callback, quickfix will send a "conditionally required field missing" rejection. So, calling isSet() works, but you can also enclose your get() code in a try-catch block to prevent FieldNotFound from being thrown out of fromApp(). -- Mike Gatny Connamara Systems, LLC http://www.connamara.com/ |