<html><body><div style="color:#000; background-color:#fff; font-family:Courier New, courier, monaco, monospace, sans-serif;font-size:12pt"><div><span style="font-family: verdana, helvetica, sans-serif;">Hi Felipe,</span></div><div><span style="font-family: verdana, helvetica, sans-serif;"><br></span></div><div><span style="font-family: verdana, helvetica, sans-serif;">This is because the message type 'ApplicationMessageRequest' ('BW') is not available with FIX4.4. Its was introduce from FIX5.0SP1 and and available only with </span><span style="font-size: 12pt; font-family: verdana, helvetica, sans-serif; ">FIX5.0SP1 and</span><span style="font-size: 12pt; font-family: verdana, helvetica, sans-serif; font-weight: bold; "> </span><span style="font-size: 12pt; font-family: verdana, helvetica, sans-serif; ">FIX5.0SP2<span style="font-weight: bold;"> (http://fixprotocol.org/FIXimate3.0/</span></span><span style="font-size: 12pt; font-family:
 verdana, helvetica, sans-serif; "><span style="font-weight: bold;">)</span>. So that's why I recommended you to use FIX5.0SP1 if you want to use this message type.</span></div><div><span style="font-family: verdana, helvetica, sans-serif;"><br></span></div><div><span style="font-family: verdana, helvetica, sans-serif;"><span style="font-weight: bold;"><span>m.Header.SetField(new BeginString("FIX.5.0SP1"));</span> </span><br></span></div><div><span style="font-family: garamond, 'new york', times, serif;"><br></span></div><div><span style="font-family: arial, helvetica, sans-serif; "><br></span></div><div><span style="font-family: arial, helvetica, sans-serif; "><br></span></div><div><span style="font-family: arial, helvetica, sans-serif; ">Your Sincerely,</span><br></div><div><span style="font-family: arial, helvetica, sans-serif; font-size: 16px; line-height: normal; ">Kapil Kumar Lalwani</span><br style="font-size: 16px; line-height: normal;
 font-family: arial, helvetica, sans-serif; "><br style="font-size: 16px; line-height: normal; font-family: arial, helvetica, sans-serif; "><span style="font-family: arial, helvetica, sans-serif; font-size: 16px; line-height: normal; ">“Enjoy the WORK you do, Do the BEST you can.”</span> <br></div><div style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; "><br></div>  <div style="font-family: 'Courier New', courier, monaco, monospace, sans-serif; font-size: 12pt; "> <div style="font-family: 'times new roman', 'new york', times, serif; font-size: 12pt; "> <div dir="ltr"> <font size="2" face="Arial"> <hr size="1">  <b><span style="font-weight:bold;">From:</span></b> Felipe Soares <felipe.soares@traderdata.com.br><br> <b><span style="font-weight: bold;">To:</span></b> Grant Birchmeier <gbirchmeier@connamara.com>; Mailing list for QuickFIX/n <quickfixn@lists.quickfixn.com> <br> <b><span style="font-weight:
 bold;">Sent:</span></b> Tuesday, 31 July 2012 11:18 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> {{Quickfixn}} RES: felipe's custom message problem<br> </font> </div> <br><div id="yiv2028111278">
<style><!--
#yiv2028111278  
 _filtered #yiv2028111278 {font-family:Wingdings;panose-1:5 0 0 0 0 0 0 0 0 0;}
 _filtered #yiv2028111278 {font-family:Wingdings;panose-1:5 0 0 0 0 0 0 0 0 0;}
 _filtered #yiv2028111278 {font-family:Calibri;panose-1:2 15 5 2 2 2 4 3 2 4;}
 _filtered #yiv2028111278 {font-family:Tahoma;panose-1:2 11 6 4 3 5 4 4 2 4;}
#yiv2028111278  
#yiv2028111278 p.yiv2028111278MsoNormal, #yiv2028111278 li.yiv2028111278MsoNormal, #yiv2028111278 div.yiv2028111278MsoNormal
        {margin:0cm;margin-bottom:.0001pt;font-size:12.0pt;font-family:"serif";}
#yiv2028111278 a:link, #yiv2028111278 span.yiv2028111278MsoHyperlink
        {color:blue;text-decoration:underline;}
#yiv2028111278 a:visited, #yiv2028111278 span.yiv2028111278MsoHyperlinkFollowed
        {color:purple;text-decoration:underline;}
#yiv2028111278 span.yiv2028111278EstiloDeEmail17
        {font-family:"sans-serif";color:#1F497D;}
#yiv2028111278 .yiv2028111278MsoChpDefault
        {font-family:"sans-serif";}
 _filtered #yiv2028111278 {margin:70.85pt 3.0cm 70.85pt 3.0cm;}
#yiv2028111278 div.yiv2028111278WordSection1
        {}
--></style><div><div class="yiv2028111278WordSection1"><div class="yiv2028111278MsoNormal"><span style="font-size:11.0pt;color:#1f497d;">Hi Grant,</span></div>
<div class="yiv2028111278MsoNormal"><span style="font-size:11.0pt;color:#1f497d;"> </span></div><div class="yiv2028111278MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">I am not sure I made any progress </span><span style="font-size: 11pt; font-family: Wingdings; color: rgb(31, 73, 125); ">L</span><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;"></span></div>
<div class="yiv2028111278MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;"> </span></div><div class="yiv2028111278MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">Here is the output I am receving from your code:</span></div>
<div class="yiv2028111278MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;"> </span></div><div class="yiv2028111278MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">8=FIX.4.4</span><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">☺</span><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">9=82</span><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">☺</span><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">35=BW</span><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">☺</span><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">1346=TRADER</span><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">☺</span><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">1347=0</span><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">☺</span><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">1351=2</span><span lang="EN-US"
 style="font-size:11.0pt;color:#1f497d;">☺</span><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">1355=foo</span><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">☺</span><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">1182=10</span><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">☺</span><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">1183=20</span><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">☺</span><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">1355=bar</span></div>
<div class="yiv2028111278MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">☺</span><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">1182=11</span><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">☺</span><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">1183=22</span><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">☺</span><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">10=202</span><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">☺</span><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;"></span></div>
<div class="yiv2028111278MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;"> </span></div><div class="yiv2028111278MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">Unhandled Exception: QuickFix.FieldNotFoundException: field not found for tag: 3</span></div>
<div class="yiv2028111278MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">5</span></div><div class="yiv2028111278MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">   at QuickFix.FieldMap.GetField(Int32 tag)</span></div>
<div class="yiv2028111278MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">   at QuickFix.Session.SendRaw(Message message, Int32 seqNum)</span></div><div class="yiv2028111278MsoNormal">
<span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">   at QuickFix.Session.Send(Message message)</span></div><div class="yiv2028111278MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">   at QuickFix.Session.SendToTarget(Message message, SessionID sessionID)</span></div>
<div class="yiv2028111278MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">   at ConsoleApplication21.TCPReplayApp.RequestSeqNum(Int32 seqnum)</span></div><div class="yiv2028111278MsoNormal">
<span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">   at ConsoleApplication21.Program.Main(String[] args)</span></div><div class="yiv2028111278MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;"> </span></div>
<div class="yiv2028111278MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">The error happens when I try Session.SendToTarget(m, sessionId);</span></div><div class="yiv2028111278MsoNormal">
<span lang="EN-US" style="font-size:11.0pt;color:#1f497d;"> </span></div><div class="yiv2028111278MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;">Please help I don´t know where I should get information…</span></div>
<div class="yiv2028111278MsoNormal"><span lang="EN-US" style="font-size:11.0pt;color:#1f497d;"> </span></div><div class="yiv2028111278MsoNormal"><b><span style="font-size:10.0pt;">De:</span></b><span style="font-size:10.0pt;"> Grant Birchmeier [mailto:<a rel="nofollow" ymailto="mailto:gbirchmeier@connamara.com" target="_blank" href="mailto:gbirchmeier@connamara.com">gbirchmeier@connamara.com</a>] <br>
<b>Enviada em:</b> terça-feira, 31 de julho de 2012 12:53<br><b>Para:</b> Mailing list for QuickFIX/n; Felipe Soares<br><b>Assunto:</b> felipe's custom message problem</span></div><div class="yiv2028111278MsoNormal"> </div><div class="yiv2028111278MsoNormal" style="margin-bottom:12.0pt;">
Felipe,<br><br>In this an future discussions, I highly recommend that you turn off digest mode.  It's making it difficult to follow the discussion when the subject lines are constantly changing.<br><br>Problem 1: In your cfg file, you need to add UseDataDictionary=Y<br>
<br>Problem 2: You are not constructing your repeating group correctly.<br><br>Problem 3: You were not using the correct message constructor.  (The first parameter to Message(string,bool) is an entire FIX message string, not just the 35 field.)</div>
<div><div class="yiv2028111278MsoNormal">To construct your message with generic methods, it should look like this:</div></div><div><div class="yiv2028111278MsoNormal"> </div></div><div class="yiv2028111278MsoNormal" style="margin-bottom:12.0pt;">            QuickFix.Message m = new Message();<br>
            m.Header.SetField(new BeginString("FIX.4.4"));<br>            m.SetField(new QuickFix.Fields.StringField(35, "BW"));<br><br>            m.SetField(new QuickFix.Fields.StringField(1346, "TRADER")); //AppReqId<br>
            m.SetField(new QuickFix.Fields.IntField(1347, 0)); //ApplReqType<br><br>            int[] ordering = {1355,1182,1183};<br>            Group g = new Group(1351, 1355, ordering);<br><br>            // first group element<br>
            g.SetField(new QuickFix.Fields.StringField(1355,("foo"))); //RefApplID<br>            g.SetField(new QuickFix.Fields.IntField(1182, 10)); //ApplBegSeqNum<br>            g.SetField(new QuickFix.Fields.IntField(1183, 20)); //ApplEndSeqNum<br>
            m.AddGroup(g);<br><br>            // second group element<br>            g.SetField(new QuickFix.Fields.StringField(1355, ("bar"))); //RefApplID<br>            g.SetField(new QuickFix.Fields.IntField(1182, 11)); //ApplBegSeqNum<br>
            g.SetField(new QuickFix.Fields.IntField(1183, 22)); //ApplEndSeqNum<br>            m.AddGroup(g);</div><div><div class="yiv2028111278MsoNormal">            Console.WriteLine(m.ToString());</div></div><div><div class="yiv2028111278MsoNormal">            // prints 8=FIX.4.4|9=82|35=BW|1346=TRADER|1347=0|1351=2|1355=foo|1182=10|1183=20|1355=bar|1182=11|1183=22|10=202|</div>
</div><div><div class="yiv2028111278MsoNormal"> </div></div><div><div class="yiv2028111278MsoNormal"> </div></div><div class="yiv2028111278MsoNormal"><br><br>--<br>Grant Birchmeier<br>Connamara Systems, LLC<br>Made-To-Measure Trading Solutions.<br>Exactly what you need. No more. No less.<br>
<a rel="nofollow" target="_blank" href="http://connamara.com/">http://connamara.com</a></div></div></div>
</div><br>_______________________________________________<br>Quickfixn mailing list<br><a ymailto="mailto:Quickfixn@lists.quickfixn.com" href="mailto:Quickfixn@lists.quickfixn.com">Quickfixn@lists.quickfixn.com</a><br><a href="http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com" target="_blank">http://lists.quickfixn.com/listinfo.cgi/quickfixn-quickfixn.com</a><br><br><br> </div> </div>  </div></body></html>