In implementation we need the iso8583 message be packet
with the Binary representation of the bitmap field, something like the following with a lengh of 64: bitmap: 0011000000100000010001011000000000100000110000001000000000001100
only the bitmap field
For this message :
ISOMsg message = new ISOMsg(); message.setMTI("0200"); message.set("3", "003000"); message.set("4", "000000000800"); message.set("11", "000007"); message.set("18", "5411"); message.set("22", "0022"); message.set("24", "0006"); message.set("25", "00"); message.set("35", "05000505200141213d07025010000040000000"); message.set("41", "0443740"); message.set("42", "56000000000"); message.set("49", "0840"); message.set("61", "1XX XXX"); message.set("62", "000000"); GenericPackager packager = new GenericPackager("C:/jpos6dev/build/cfg/packager/base24.xml"); message.setPackager(packager); System.out.println("Mensaje Empaquetado->"+new String(message.pack())); i get the bitmap 320458020C0800C, the message is packet
correctly according with the definition <isofield
id="1" length="16" name="BIT MAP" class="org.jpos.iso.IFA_BITMAP" /> I now changed this field definition to be :
<isofield
id="1" length="64" name="BIT MAP" class="org.jpos.iso.IFB_BINARY"/> in order to be according with the Message Packet Specifications of the host,
but now i receive and error message error org.jpos.iso.IFB_BYNARY : problem packing field -1 how can i manage this issue: Thanks for your help |
Ok. thanks
In jpos, if i have the following :
|
ISOMsg message = new ISOMsg(); |
message.setMTI("200"); message.set("2", "1518674684515231321"); message.set("3", "140000"); message.set("4", "000000100000"); message.set("7", "1219171316"); message.set("11", "058169"); message.set("12", "111316"); message.set("13", "1254"); message.set("14", "0901"); message.set("17", "3566"); message.set("22", "010"); message.set("32", "062890000"); message.set("37", "1565646656"); message.set("41", "MJDCAJ02 "); message.set("42", "CUSCATLAN "); message.set("43", "CUSCATLAN DF MX"); message.set("48", "044030517 "); message.set("49", "558"); message.set("55", "003818"); message.set("60", "0120720BCRT+000"); message.set("61", "0130000PRO10000P"); message.set("62", "006008564"); message.set("100", "06288000"); message.set("120", "033MOREL -CAJA- "); GenericPackager packager = new GenericPackager("src/packager/base24.xml"); |
message.setPackager(packager); System.out.println("Mensaje Empaquetado->"+new String(message.pack())); |
i get the packet message :
-------bitmap1---------- ----------bitmap2---------
0200F23C840108E1821C00000000100001001915186746845152313211400000000001000001219171316058169111316125409013566010090628900001565646656 MJDCAJ02 CUSCTLAN CUSCTLAN DF MX 047044030517 640806288000033033MOREL -CAJA- this is correct.
the binary representation of the exage. bitmaps is as follow :
F23C840108E1821C = 011000000100110010001011000000000100000110000001000000000001100 (example, not real)
000000001000010019 = 0011000000100000010001011000000000100000110011001000000000000000 (example, no real) i need to now i can do this with jpos changing the packager definition
so the packet message result be something like:
020000110000001001100100010110000000001000001100000010000000000011000011000000100000010001011000000000100000110011001000000000000000
15186746845152313211400000000001000001219171316058169111316125409013566010090628900001565646656 MJDCAJ02 CUSCTLAN CUSCTLAN DF MX 047044030517 5580060038180150120720BCRT+0000160130000PRO10000P0090060085640806288000033033MOREL -CAJA-
the remote host, not jpos based, will recognize
00110000001001100100010110000000001000001100000010000000000011000011000000100000010001011000000000100000110011001000000000000000
as a valid bitmap
not F23C840108E1821C000000001000010019
I will appreciate other recommendations or ideas for handling this matter in jpos.
thanks !
|
The bitmap would be represented with the binary representation of the of the ASCII character. |
--
--
jPOS is licensed under AGPL - free for community usage for your open-source project. Licenses are also available for commercial usage. Please support jPOS, contact: sa...@jpos.org
---
You received this message because you are subscribed to the Google Groups "jPOS Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jpos-users+unsubscribe@googlegroups.com.
To post to this group, send email to jpos-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/b8a97a7d-bf44-4540-b7f3-75ecfd7ca50d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.