Re: [Quickfix-developers] Adding Custom Message to Fix42.xml and handling in application
Brought to you by:
orenmnero
From: Brian E. <azz...@ya...> - 2009-02-27 15:53:37
|
This was supposed to be added to the QF documentation, but never was. I put together a tutorial on custom messages a few years back, and as QF hasn't really changed much since then, it should still work fine. http://www.nabble.com/Custom-Messages-Classes-Tutorial-td13495584.html - Brian Erst ________________________________ ________________________________ From: Nikhil Chitnis <nik...@gm...> To: QuickFix Developers <qui...@li...> Sent: Friday, February 27, 2009 3:29:53 AM Subject: [Quickfix-developers] Adding Custom Message to Fix42.xml and handling in application QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/html/index.html QuickFIX Support: http://www.quickfixengine.org/services.html Hi, I have a specific requirement to add a custom message and handle the response for the same. I have done following so far - In the Fix42.xml I have added following - In the <messages> section,: <!-- ============================== --> <!-- Begin Custom Messages --> <message name="MyCustomPositionReport" msgtype="MCM59" msgcat="app"> <field name="MyCustomPositionRequestId" required="Y" /> <group name="MyCustomPositionGroup" required="N"> <field name="Account" required="Y" /> <field name="SecurityID" required="N" /> <field name="WorkingLong" required="Y"/> <field name="WorkingShort" required="Y"/> <field name="OpenPosition" required="Y"/> <field name="AvgPx" required="N"/> <field name="SecurityExchange" required="N"/> <field name="Symbol" require="N"/> <field name="MaturityMonthYear" required="N"/> </group> </message> <message name="MyCustomPositionRequest" msgtype="MCM60" msgcat="app"> <field name="MyCustomPositionRequestId" required="Y" /> <group name="MyCustomAccountGroup" required="Y"> <field name="Account" required="Y" /> </group> </message> <!-- End Custom Messages --> <!-- ============================ --> and in the fields section I have added following - <!-- ============================== --> <!-- Begin Custom Messages Fields --> <field number="1102400" name="MyCustomPositionGroup" type="INT" /> <field number="1102500" name="MyCustomAccountGroup" type="INT" /> <field number="1102600" name="MyCustomPositionRequestId" type="INT"/> <field number="1101700" name="OpenPosition" type= "INT"/> <field number="1101800" name="WorkingLong" type="INT"/> <field number="1101900" name="WorkingShort" type="INT"/> <!-- End Custom Messages Fields --> <!-- ============================ --> I am using C# (2.0) for development and after making the changes in the xml file, I have rebuild the quickfix solution. When I am using the dll in the project, I am not getting the class for MyCustomPositionReport and request. Is there anything else I have to do so that I will get this working? Thanks in advance, Regards Niks. |