Imported from previous forum
Hi all!
My Logon message is continuously being replied with a null, whereas the other clients are being connected. I have checked through everything again and I think all calculation etc. I am doing correct. But there is one thing I need to ask. The message is converted to ascii and then the checksum is calculated? or the checksum is calculated first and then the ascii conversion takes place? as all the communication is done in ascii format…(if i am now wrong)
[ original email was from Ian Orford - ian.orford@ubs.com ]
FIX messages should be single-byte ASCII rather an uni-code.
However, are you sure this is the problem? I would have thought your counterparty would at least send a Reject message if they didn’t like your checksum value.
You really should be talking to your counterparty. I’m sure they’ll be able to help you with the solution.
> Hi all!
>
> My Logon message is continuously being replied with a null, whereas the other clients are being connected. I have checked through everything again and I think all calculation etc. I am doing correct. But there is one thing I need to ask. The message is converted to ascii and then the checksum is calculated? or the checksum is calculated first and then the ascii conversion takes place? as all the communication is done in ascii format…(if i am now wrong)
>
[ original email was from Greg Orsini - go@cameronsystems.com ]
Not to get off the subject, but you should not expect a reject for malformed messages (i.e., messages sent with an invalid checksum). According to the latest FIX spec:
Note: The receiving application should disregard any message that is garbled, cannot be parsed or fails a data integrity check. Processing of the next valid FIX message will cause detection of a sequence gap and a Resend Request will be generated. Logic should be included in the FIX engine to recognize the possible infinite resend loop, which may be encountered in this situation.
> FIX messages should be single-byte ASCII rather an uni-code.
>
> However, are you sure this is the problem? I would have thought your counterparty would at least send a Reject message if they didn’t like your checksum value.
>
> You really should be talking to your counterparty. I’m sure they’ll be able to help you with the solution.
>
>
> > Hi all!
> >
> > My Logon message is continuously being replied with a null, whereas the other clients are being connected. I have checked through everything again and I think all calculation etc. I am doing correct. But there is one thing I need to ask. The message is converted to ascii and then the checksum is calculated? or the checksum is calculated first and then the ascii conversion takes place? as all the communication is done in ascii format…(if i am now wrong)
> >
>
So if "8=FIX.4.1" are 9 characters, the ascii representation should be 9 bytes? If the anser is yes, then I am getting more bytes after converting the fix message string to ascii. Is this wrong? I am using String.getBytes("US-ASCII") in Java.
> Hi all!
>
> My Logon message is continuously being replied with a null, whereas the other clients are being connected. I have checked through everything again and I think all calculation etc. I am doing correct. But there is one thing I need to ask. The message is converted to ascii and then the checksum is calculated? or the checksum is calculated first and then the ascii conversion takes place? as all the communication is done in ascii format…(if i am now wrong)
>
I guess you are right! I need to talk to them if there is some vendor specific issue. btw. Thanx a lot.
> So if "8=FIX.4.1" are 9 characters, the ascii representation should be 9 bytes? If the anser is yes, then I am getting more bytes after converting the fix message string to ascii. Is this wrong? I am using String.getBytes("US-ASCII") in Java.
>
>
>
> > Hi all!
> >
> > My Logon message is continuously being replied with a null, whereas the other clients are being connected. I have checked through everything again and I think all calculation etc. I am doing correct. But there is one thing I need to ask. The message is converted to ascii and then the checksum is calculated? or the checksum is calculated first and then the ascii conversion takes place? as all the communication is done in ascii format…(if i am now wrong)
> >
>