简体   繁体   English

没有位图的 J8583 消息

[英]J8583 message without bitmap

It's possible send a j8583 IsoMessage without bitmap field?可以发送没有位图字段的 j8583 IsoMessage 吗?

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.没有位图就无法创建IsoMessage 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.例如,如果您正在对文本消息进行编码并且没有 ISO 标头,则写入缓冲区的前 4 个字节,然后写入缓冲区的其余部分,如果您只有一个主位图,则从位置 20 开始;如果只有主位图,则写入位置 36你有一个辅助位图。

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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