[Quickfix-developers] Body Length Message::validate() Problem
Brought to you by:
orenmnero
|
From: Jon D. <jd...@Li...> - 2003-05-02 14:33:17
|
I'm still knocking my head against the wall when sending a QuoteRequest =
message to the executor C++ example program.=20
=20
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.
=20
Does anyone know why this may be?
=20
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.
=20
Here's the output:
8=3DFIX.4.3?9=3D69?35=3DR?34=3D225?49=3DCLIENT1?52=3D20030502-6:24?56=3DT=
W?131=3D1?146=3D1?55=3DOSR?10=3D218?
=20
Here's the code to produce it:
FIX43::QuoteRequest Application::queryQuoteRequest43()
{
FIX43::QuoteRequest qr(FIX::QuoteReqID(genQuoteReqID()));
FIX43::QuoteRequest::NoRelatedSym sym;
=20
sym.set( querySymbol() );
=20
qr.addGroup( sym );
=20
queryHeader( qr.getHeader() );
=20
return qr;
}
=20
Here is a snippet of the tradeclient.cfg file:
[SESSION]
BeginString=3DFIX.4.3
SenderCompID=3DCLIENT1
TargetCompID=3DTW
DataDictionary=3D../spec/FIX43.xml
=20
[SESSION]
BeginString=3DFIX.4.3
SenderCompID=3DCLIENT2
TargetCompID=3DTW
DataDictionary=3D../spec/FIX43.xml
=20
Here is a snippet of the executor.cfg file:
[SESSION]
BeginString=3DFIX.4.3
SenderCompID=3DTW
TargetCompID=3DCLIENT1
DataDictionary=3D../spec/FIX43.xml
=20
[SESSION]
BeginString=3DFIX.4.3
SenderCompID=3DTW
TargetCompID=3DCLIENT2
DataDictionary=3D../spec/FIX43.xml
Anyone see anything wrong in the message, the code itself or the config =
files?
=20
Thanks,
=20
JD
=20
=20
|