[Quickfix-developers] Adding Custom Message to Fix42.xml and handling in application
Brought to you by:
orenmnero
From: Nikhil C. <nik...@gm...> - 2009-02-27 09:30:00
|
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. |