The command iso8583.initmessage is used to start mounting an ISO8583 message.
In the example above, the function initISO8583Message was created in order to perform the following steps:
1. Start mounting the ISO8583 message.
2. Insert the value in the fields of each corresponding bit, according to the specification on the bitmap.
3. Finish the ISO8583 message.
This procedure must be performed after validating the file bitmap.dat and after initializing the field table through the command iso8583.initfieldtable.
To better illustrate the process of building an ISO8583 message using the POSXML language, the bits BIT41 and BIT64 were included, and they are going to be added to the message through the command iso8583.putfield after starting the ISO8583 message through the command iso8583.initmessage.
If no error occurs during the message initialization or while adding fields, the message is finished through the command iso8583.endmessage.
If no error occurs while starting up the message or while inserting the fields, the message is finished using the command iso8583.endmessage