<div dir="ltr"><div class="gmail_default" style="font-size:small">You mean replay in a test-environment context, i.e. to confirm that you've fixed a parsing bug?  Then that makes a certain amount of sense.</div>
<div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">We actually made a different tool, not in QF, that just sends and receives raw FIX messages.  (You can't really make QF send incorrect messages, by design, so we needed a tool like this to test abnormal situations.)  I guess when we encounter message errors like that, we test it at the acceptance-test level rather than unit test.</div>


<div class="gmail_default" style="font-size:small"><br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Dec 5, 2013 at 2:33 PM, Pete Riehl <span dir="ltr"><<a href="mailto:priehl@saierscapital.com" target="_blank">priehl@saierscapital.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div lang="EN-US" link="blue" vlink="purple">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">I am getting the messages from a live connection.  In the event that I reject the message due to a poorly formed dd or poor parsing logic, I’d like to replay
 the message rather than try to re generate the same one in the vendor’s test environment.  Is there a better way to do this?  Your surprise seems to imply that there is.  If you achieve this in a better way, I’d love to try it. 
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Thanks for your help,
<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Now I’ll answer this
 question next time it comes up
</span><span style="font-size:11.0pt;font-family:Wingdings;color:#1f497d">J</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> <a href="mailto:quickfixn-bounces@lists.quickfixn.com" target="_blank">quickfixn-bounces@lists.quickfixn.com</a> [mailto:<a href="mailto:quickfixn-bounces@lists.quickfixn.com" target="_blank">quickfixn-bounces@lists.quickfixn.com</a>]
<b>On Behalf Of </b>Grant Birchmeier<br>
<b>Sent:</b> Thursday, December 05, 2013 1:34 PM<br>
<b>To:</b> Mailing list for QuickFIX/n<br>
<b>Subject:</b> Re: {{Quickfixn}} Generating messages from fix message string.<u></u><u></u></span></p><div><div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal"><span>I am continually surprised by how many people want to do this.  Where are you guys getting your
 FIX strings from if not from a live FIX connection?<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span>Anyway, you want Message.FromString().  Use it like follows:<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span><u></u> <u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">string msgStr = <your message></span><span><u></u><u></u></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">var dd = new QuickFix.DataDictionary.DataDictionary();</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">dd.Load("../../../spec/fix/FIX44.xml"); // or whatever
 file</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">IMessageFactory defaultMsgFactory = new DefaultMessageFactory();</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">var msg = new QuickFix.FIX44.ExecutionReport();</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Courier New"">msg.FromString(msgStr,true,dd,dd,defaultMsgFactory);</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">I stole all that straight from the unit tests.</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">I'm gonna put this is the FAQ right now.  I answer this question way too often.</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><span style="font-family:"Arial","sans-serif"">-Grant</span><u></u><u></u></p>
</div>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><u></u> <u></u></p>
<div>
<p class="MsoNormal">On Thu, Dec 5, 2013 at 11:09 AM, Pete Riehl <<a href="mailto:priehl@saierscapital.com" target="_blank">priehl@saierscapital.com</a>> wrote:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Hello,<u></u><u></u></p>
<p class="MsoNormal"> I believe this may have been mentioned in a previous chain, but cannot find any documentation on it. 
<u></u><u></u></p>
<p class="MsoNormal"> I would like to take the text of a fix message and pass it through my parser.  In the original Quickfix library, you could use the set string method on any message type.<u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:7.5pt;font-family:Consolas;color:#2b91af;background:yellow">ExecutionReport</span><span style="font-size:7.5pt;font-family:Consolas;background:yellow"> exec =
<span style="color:blue">new</span> <span style="color:#2b91af">ExecutionReport</span>();</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:7.5pt;font-family:Consolas;background:yellow">exec.setString(text);</span><u></u><u></u></p>
<p class="MsoNormal">There doesn’t seem to be any equivalent way to create the message in quickfix/n save for parsing your string and calling setfield.<u></u><u></u></p>
<p class="MsoNormal">Any help would be appreciated.<u></u><u></u></p>
<p class="MsoNormal">Pete<u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif""> </span><u></u><u></u></p>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
<br>
The information contained in this electronic message is confidential and does not constitute investment advice or an offer to sell or the solicitation of an offer to purchase any security or investment product. Offers may only be made by means of delivery of
 an approved confidential offering memorandum, may be legally privileged and confidential under applicable law, and are intended only for the use of the individual or entity named above. We do not, and will not, effect or attempt to effect transactions in securities,
 or render personalized investment advice for compensation, through this email. All materials within this email have been provided to you for information purposes only and may not be relied upon by you in evaluating the merits of investing in any securities
 referenced herein. Our investment program involves substantial risk and no
 assurance can be given that our investment objectives will be achieved. Commodity trading involves substantial risk of loss. Past results are not necessarily indicative of future results.
 Any review, retransmission, dissemination, or taking of any action in reliance upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from
 any computer. Email transmissions are not secure, and we accept no liability for errors in transmission, delayed transmission, or other transmission-related issues. This message may contain confidential, proprietary or legally
 privileged information. Neither
 confidentiality nor any privilege is intended to be waived or lost by any error in transmission. Emails are subject to review and will be archived.
<br>
_______________________________________________<br>
Quickfixn mailing list<br>
<a href="mailto:Quickfixn@lists.quickfixn.com" target="_blank">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><u></u><u></u></p>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">-- <u></u><u></u></p>
<div>
<p class="MsoNormal"><span style="background:white">Grant Birchmeier</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><b><span style="color:#3333ff;background:#ffcc00">Connamara Systems, LLC</span></b><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><b>Made-To-Measure Trading Solutions.</b><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Exactly what you need. No more. No less.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><a href="http://connamara.com" target="_blank">http://connamara.com</a><u></u><u></u></p>
</div>
</div>
</div></div></div>
</div><div><div>




<br><br>The information contained in this electronic message is confidential and does not constitute investment advice or an offer to sell or the
 solicitation of an offer to purchase any security or investment product. Offers may only be made by means of delivery of an approved confidential offering memorandum, may be legally privileged and confidential under applicable law, and are intended only for the use of the individual or entity named above. We do not, and will not, effect or attempt to effect transactions in securities, or render personalized investment advice for compensation, through this email. All materials within this email have been provided to you for information purposes only and may not be relied upon by you in evaluating the merits of investing in any securities referenced herein. Our investment program involves substantial risk and no assurance can be given that our investment objectives will be achieved. Commodity trading involves substantial risk
 of loss. Past results are not necessarily indicative of future results.  Any review, retransmission, dissemination, or taking of any action in reliance
 upon this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. Email transmissions are not secure, and we accept no liability for errors in transmission, delayed transmission, or other transmission-related issues. This message may contain confidential, proprietary or legally privileged information. Neither confidentiality nor any privilege is intended to be waived or lost by any error in transmission. Emails are subject to review and will be archived.
</div></div><br>_______________________________________________<br>
Quickfixn mailing list<br>
<a href="mailto:Quickfixn@lists.quickfixn.com" target="_blank">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></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><font><span style="background-color:#000000"><span style="background-color:#ffffff">Grant Birchmeier</span></span></font><font><font color="#3333ff"><br>


</font></font></div><div><font><b><font color="#3333ff"><span style="background-color:#ffcc33"><span style="background-color:#ffcc66"><span style="background-color:#ffcc99"><span style="background-color:#ffffff"><span style="background-color:#ffcc00">Connamara Systems, LLC</span></span></span></span></span></font></b></font><br>


</div><div><font><b>Made-To-Measure Trading Solutions.</b></font></div><div><font>Exactly what you need. No more. No less.</font><font><b><font color="#3333ff"><br></font></b></font></div><div><font><a href="http://connamara.com" target="_blank">http://connamara.com</a><br>


</font></div>
</div></div>