简体   繁体   中英

J8583 message without bitmap

It's possible send a j8583 IsoMessage without bitmap field?

I need create a short message for authentication, but not should have bitmap.

Thanks

There is no way to create an IsoMessage without a bitmap. Even for auth you should include a bitmap.

However, if you're required to omit a bitmap, you can create the message as a byte array and "cut out" the bitmap. For example if you're encoding text messages and don't have an ISO header, write the first 4 bytes of the buffer, and then the rest of the buffer starting at position 20 if you only have a primary bitmap, or position 36 if you have a secondary bitmap.

If the reply has no bitmap, the message factory won't be able to parse it, since the bitmap is essential to know what fields are included in the response.

将 ISOBasePackager.emitBitMap 设置为 false

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM