Re: [Quickfix-developers] Body Length Message::validate() Problem
Brought to you by:
orenmnero
From: Oren M. <ore...@ya...> - 2003-05-02 18:04:40
|
Egads, what's going on with the date field. It's 3 characters short! 52=20030502-6:24 Jon Dahl <jd...@Li...> wrote:I'm still knocking my head against the wall when sending a QuoteRequest message to the executor C++ example program. For some reason the validate() method in the Message class returns false when I send a QuoteRequest Message and subsequently the constructor throws an InvalidMessage Exception.It says the BodyLength values are not the same. Does anyone know why this may be? All I have coded in the QuoteRequest is to send the required fields. I have not included any of the optional fields when building the message. Here's the output:8=FIX.4.3#9786;9=69#9786;35=R#9786;34=225#9786;49=CLIENT1#9786;52=20030502-6:24#9786;56=TW#9786;131=1#9786;146=1#9786;55=OSR#9786;10=218#9786; Here's the code to produce it:FIX43::QuoteRequest Application::queryQuoteRequest43() { FIX43::QuoteRequest qr(FIX::QuoteReqID(genQuoteReqID())); FIX43::QuoteRequest::NoRelatedSym sym; sym.set( querySymbol() ); qr.addGroup( sym ); queryHeader( qr.getHeader() ); return qr; } Here is a snippet of the tradeclient.cfg file:[SESSION] BeginString=FIX.4.3 SenderCompID=CLIENT1 TargetCompID=TW DataDictionary=../spec/FIX43.xml [SESSION] BeginString=FIX.4.3 SenderCompID=CLIENT2 TargetCompID=TW DataDictionary=../spec/FIX43.xml Here is a snippet of the executor.cfg file:[SESSION] BeginString=FIX.4.3 SenderCompID=TW TargetCompID=CLIENT1 DataDictionary=../spec/FIX43.xml [SESSION] BeginString=FIX.4.3 SenderCompID=TW TargetCompID=CLIENT2 DataDictionary=../spec/FIX43.xml Anyone see anything wrong in the message, the code itself or the config files? Thanks, JD --------------------------------- Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. |