Imported from previous forum
Hi everybody
I’m trying to extract FIX message from file i then send it to the Fix Acceptor,
Initially i’m only trying to create Message object with string as
line=“8=FIX4.29=22235=S49=Broker56=Institution34=25152=2000072814:06:22117=XXX131=YYY55=AA200=199901202=25.00201=1132=5.00133=5.25134=10135=1010=KED”;
Message m=new Message(line);
But its not working…
please let me know where i’m going wrong
Hi Sachin,
The value for tag 8 should be FIX.4.2, but you had FIX4.2 (notice the extra period). The value of the field CheckSum (tag 10) should be an integer value, not a string (you have 10=KED).
Your message should look like this (with a new value for tag 9):
8=FIX.4.29=13835=S49=Broker56=Institution34=25152=2000072814:06:22117=XXX131=YYY55=AA200=199901202=25.00201=1132=5.00133=5.25134=10135=1010=8
I’m assuming you’re using QuickFix since you are using a Message object, but I may be mistaken. Regardless, the message should parse correctly with the changes I’ve noted. Please let me know if it still doesn’t work.
Paul
Hi everybody
I’m trying to extract FIX message from file i then send it to the
Fix Acceptor, Initially i’m only trying to create Message object
with string asline="8=FIX4.29=22235=S49=Broker56=Institution<SOH-
34=25152=2000072814:06:22117=XXX131=YYY55=AA-
200=199901202=25.00201=1132=5.00133=5.25134=1-
0135=1010=KED";Message m=new Message(line);
But its not working… please let me know where i’m going wrong
Trailer Tag 10 should always be exactly three digits long i.e. of the form ^10=123^, if the int checksum value calculated is less than three digits long, then left pad it with zeros to make it three digits long.
Hi Sachin,
The value for tag 8 should be FIX.4.2, but you had FIX4.2 (notice the
extra period). The value of the field CheckSum (tag 10) should be an
integer value, not a string (you have 10=KED).Your message should look like this (with a new value for tag 9):
8=FIX.4.29=13835=S49=Broker56=Institution34=25152=2000072814:06:2-
2117=XXX131=YYY55=AA200=199901202=25.00201=1132=5.00133=5.2513-
4=10135=1010=8I’m assuming you’re using QuickFix since you are using a Message
object, but I may be mistaken. Regardless, the message should parse
correctly with the changes I’ve noted. Please let me know if it still
doesn’t work.Paul
Hi everybody
I’m trying to extract FIX message from file i then send it to the Fix
Acceptor, Initially i’m only trying to create Message object with
string asne="8=FIX4.29=22235=S49=Broker56=Institution<SOH-
=25152=2000072814:06:22117=XXX131=YYY55=AA-
0=199901202=25.00201=1132=5.00133=5.25134=1-
135=1010=KED";Message m=new Message(line);
But its not working… please let me know where i’m going wrong
Thank you for the correction, Mahesh. The checksum should indeed always be a 3-byte value. I was assuming the use of some flavor of QuickFix, which will pad with leading zeroes as needed when setting the checksum field.
Trailer Tag 10 should always be exactly three digits long i.e. of the
form ^10=123^, if the int checksum value calculated is less than three
digits long, then left pad it with zeros to make it three digits long.Hi Sachin,
The value for tag 8 should be FIX.4.2, but you had FIX4.2 (notice the
extra period). The value of the field CheckSum (tag 10) should be an
integer value, not a string (you have 10=KED).Your message should look like this (with a new value for tag 9):
FIX.4.29=13835=S49=Broker56=Institution34=25152=2000072814:06:2-
117=XXX131=YYY55=AA200=199901202=25.00201=1132=5.00133=5.2513-
4=10135=1010=8I’m assuming you’re using QuickFix since you are using a Message
object, but I may be mistaken. Regardless, the message should parse
correctly with the changes I’ve noted. Please let me know if it still
doesn’t work.Paul
Hi everybody
I’m trying to extract FIX message from file i then send it to the
Fix Acceptor, Initially i’m only trying to create Message object
with string as="8=FIX4.29=22235=S49=Broker56=Institution<SOH-
=152=2000072814:06:22117=XXX131=YYY55=AA-
199901202=25.00201=1132=5.00133=5.25134=1-
135=1010=KED";Message m=new Message(line);
But its not working… please let me know where i’m going wrong