<div dir="ltr"><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)">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?</div>
<div class="gmail_default" style="font-size:small;color:rgb(0,0,0)"><br></div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)">Anyway, you want Message.FromString(). Use it like follows:</div><div class="gmail_default" style="font-size:small;color:rgb(0,0,0)">
<br></div><div class="gmail_default" style="color:rgb(0,0,0);font-size:small"><font face="courier new, monospace">string msgStr = <your message></font></div><div class="gmail_default"><div class="gmail_default"><font color="#000000" face="courier new, monospace"><br>
</font></div><div class="gmail_default"><font color="#000000" face="courier new, monospace">var dd = new QuickFix.DataDictionary.DataDictionary();</font></div><div class="gmail_default"><font color="#000000" face="courier new, monospace">dd.Load("../../../spec/fix/FIX44.xml"); // or whatever file</font></div>
<div class="gmail_default"><font color="#000000" face="courier new, monospace"><br></font></div><div class="gmail_default"><font color="#000000" face="courier new, monospace">IMessageFactory defaultMsgFactory = new DefaultMessageFactory();<br>
</font></div><div class="gmail_default"><font color="#000000" face="courier new, monospace"><br></font></div><div class="gmail_default"><font color="#000000" face="courier new, monospace">var msg = new QuickFix.FIX44.ExecutionReport();</font></div>
<div class="gmail_default"><font color="#000000" face="courier new, monospace">msg.FromString(msgStr,true,dd,dd,defaultMsgFactory);</font></div><div class="gmail_default"><font color="#000000" face="courier new, monospace"><br>
</font></div><div class="gmail_default"><font color="#000000" face="arial, helvetica, sans-serif">I stole all that straight from the unit tests.</font></div><div class="gmail_default"><font color="#000000" face="arial, helvetica, sans-serif"><br>
</font></div><div class="gmail_default"><font color="#000000" face="arial, helvetica, sans-serif">I'm gonna put this is the FAQ right now. I answer this question way too often.</font></div><div class="gmail_default">
<font color="#000000" face="arial, helvetica, sans-serif"><br></font></div><div class="gmail_default"><font color="#000000" face="arial, helvetica, sans-serif">-Grant</font></div></div></div><div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Thu, Dec 5, 2013 at 11:09 AM, 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">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>();<u></u><u></u></span></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""><u></u> <u></u></span></p>
</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.
<br>_______________________________________________<br>
Quickfixn mailing list<br>
<a 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></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>