|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
  |
|
FIX Checksum and message bodylength (FIX tags 9 and 10) calc |
View previous topic :: View next topic |
Author |
Message
|
j1 |
Posted: Mon Jul 18, 2011 1:41 pm Post subject: FIX Checksum and message bodylength (FIX tags 9 and 10) calc |
|
|
 Centurion
Joined: 23 Jun 2003 Posts: 139
|
Hi, How do we calculate Checksum and message bodylength (FIX tags 9 and 10) in mssage broker. Since this is a generic issue, Im thinking there is probably some kind of generic solution,, such as a resusable node or code snippet for it? many thanks |
|
Back to top |
|
 |
Ric-Tic |
Posted: Tue Jul 19, 2011 10:37 am Post subject: Re: FIX Checksum and message bodylength (FIX tags 9 and 10) |
|
|
Apprentice
Joined: 18 Nov 2003 Posts: 38 Location: Zurich, Switzerland
|
j1 wrote: |
Hi, How do we calculate Checksum and message bodylength (FIX tags 9 and 10) in mssage broker. Since this is a generic issue, Im thinking there is probably some kind of generic solution,, such as a resusable node or code snippet for it? many thanks |
You mean BodyLength(9) and CheckSum(10)
You calculate it the same way as in any other language. From the FIX spec:
Quote: |
The record length is indicated in the BodyLength field and is verified by counting the number of
characters in the message following the BodyLength field up to, and including, the delimiter
immediately preceding the CheckSum tag (“10=”).
The CheckSum integrity check is calculated by summing the binary value of each character from the
“8” of “8=“ up to and including the <SOH> character immediately preceding the CheckSum tag field
and comparing the least significant eight bits of the calculated value to the CheckSum value |
|
|
Back to top |
|
 |
|
|
  |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|