[jpos-users] Binary representation of the bitmap field

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

[jpos-users] Binary representation of the bitmap field

Fernando Del Carmen Taveras
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



¡Obtén la mejor experiencia en la web!
Descarga gratis el nuevo Internet Explorer 8
http://downloads.yahoo.com/ieak8/?l=e1 --~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the  "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to [hidden email]
To unsubscribe, send email to [hidden email]
For more options, visit this group at http://groups.google.com/group/jpos-users
-~----------~----~----~----~------~----~------~--~---

AAO
Reply | Threaded
Open this post in threaded view
|

[jpos-users] Re: Binary representation of the bitmap field

AAO
Are you sure about that?  That would be most unusual.  They don't want the BCD representation of the bitmap?

I pulled up a representation industry spec and it says of the Bitmap:

Bit Map, Primary b 64

But, then further on in this spec (which is typical), you see how they actually want you to send the data; in this example, you have two options:

b 8 bytes (if BCD option) or
16 hex bytes (if display option)

The first option is implemented by IFB_BITMAP

The second option is implemented by either IFA_BITMAP or IFE_BITMAP. 

In all cases the packager length you define is 16.  jPOS figures out the rest.

See also:

http://www.andyorrock.com/2007/08/iso8583-seconda.html

(Note that DE 1 is, in reality, the definition for the Secondary bitmap...but jPOS sees it as a nod to the primary, so those two are in lock-step).

Andy Orrock


On Wed, Sep 30, 2009 at 06:06, Fernando Del Carmen Taveras <[hidden email]> wrote:
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



¡Obtén la mejor experiencia en la web!
Descarga gratis el nuevo Internet Explorer 8
http://downloads.yahoo.com/ieak8/?l=e1


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the  "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to [hidden email]
To unsubscribe, send email to [hidden email]
For more options, visit this group at http://groups.google.com/group/jpos-users
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

[jpos-users] Re: Binary representation of the bitmap field

Fernando Del Carmen Taveras
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 !
 
 

--- El mié 30-sep-09, AAO <[hidden email]> escribió:

De: AAO <[hidden email]>
Asunto: [jpos-users] Re: Binary representation of the bitmap field
A: [hidden email]
Fecha: miércoles, 30 septiembre, 2009, 9:03 am

Are you sure about that?  That would be most unusual.  They don't want the BCD representation of the bitmap?

I pulled up a representation industry spec and it says of the Bitmap:

Bit Map, Primary b 64

But, then further on in this spec (which is typical), you see how they actually want you to send the data; in this example, you have two options:

b 8 bytes (if BCD option) or
16 hex bytes (if display option)

The first option is implemented by IFB_BITMAP

The second option is implemented by either IFA_BITMAP or IFE_BITMAP. 

In all cases the packager length you define is 16.  jPOS figures out the rest.

See also:

http://www.andyorrock.com/2007/08/iso8583-seconda.html

(Note that DE 1 is, in reality, the definition for the Secondary bitmap...but jPOS sees it as a nod to the primary, so those two are in lock-step).

Andy Orrock


On Wed, Sep 30, 2009 at 06:06, Fernando Del Carmen Taveras <fdelcarmen2000@...> wrote:
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



¡Obtén la mejor experiencia en la web!
Descarga gratis el nuevo Internet Explorer 8
http://downloads.yahoo.com/ieak8/?l=e1




¡Obtén la mejor experiencia en la web!
Descarga gratis el nuevo Internet Explorer 8
http://downloads.yahoo.com/ieak8/?l=e1 --~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the  "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to [hidden email]
To unsubscribe, send email to [hidden email]
For more options, visit this group at http://groups.google.com/group/jpos-users
-~----------~----~----~----~------~----~------~--~---

AAO
Reply | Threaded
Open this post in threaded view
|

[jpos-users] Re: Binary representation of the bitmap field

AAO
Got it.  That's beyond my pay grade.

BTW, where you say you want a "the binary representation" of this...what you're actually asking for is a character-representation of the binary list of settings.  And do you need ASCII or EBCDIC?

Andy


On Thu, Oct 1, 2009 at 07:29, Fernando Del Carmen Taveras <[hidden email]> wrote:
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 !
 
 

--- El mié 30-sep-09, AAO <[hidden email]> escribió:

De: AAO <[hidden email]>
Asunto: [jpos-users] Re: Binary representation of the bitmap field
A: [hidden email]
Fecha: miércoles, 30 septiembre, 2009, 9:03 am


Are you sure about that?  That would be most unusual.  They don't want the BCD representation of the bitmap?

I pulled up a representation industry spec and it says of the Bitmap:

Bit Map, Primary b 64

But, then further on in this spec (which is typical), you see how they actually want you to send the data; in this example, you have two options:

b 8 bytes (if BCD option) or
16 hex bytes (if display option)

The first option is implemented by IFB_BITMAP

The second option is implemented by either IFA_BITMAP or IFE_BITMAP. 

In all cases the packager length you define is 16.  jPOS figures out the rest.

See also:

http://www.andyorrock.com/2007/08/iso8583-seconda.html

(Note that DE 1 is, in reality, the definition for the Secondary bitmap...but jPOS sees it as a nod to the primary, so those two are in lock-step).

Andy Orrock


On Wed, Sep 30, 2009 at 06:06, Fernando Del Carmen Taveras <fdelcarmen2000@...> wrote:
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



¡Obtén la mejor experiencia en la web!
Descarga gratis el nuevo Internet Explorer 8
http://downloads.yahoo.com/ieak8/?l=e1




¡Obtén la mejor experiencia en la web!
Descarga gratis el nuevo Internet Explorer 8
http://downloads.yahoo.com/ieak8/?l=e1


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the  "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to [hidden email]
To unsubscribe, send email to [hidden email]
For more options, visit this group at http://groups.google.com/group/jpos-users
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

[jpos-users] Re: Binary representation of the bitmap field

Alejandro Revilla
Are you sure you want every bit represented using a byte (either in ASCII 0x30/0x31 or EBCDIC 0xF0/0xF1) ?

I think you are confusing the wire protocol (the real bytes going over the wire) with a display-time format provided by your endpoint.

If you want the former, you need to create your own BitmapPackager.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the  "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to [hidden email]
To unsubscribe, send email to [hidden email]
For more options, visit this group at http://groups.google.com/group/jpos-users
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

[jpos-users] Re: Binary representation of the bitmap field

Fernando Del Carmen Taveras
In reply to this post by AAO

The bitmap would be represented with the binary representation of the  of the ASCII character.

 
 

--- El jue 1-oct-09, AAO <[hidden email]> escribió:

De: AAO <[hidden email]>
Asunto: [jpos-users] Re: Binary representation of the bitmap field
A: [hidden email]
Fecha: jueves, 1 octubre, 2009, 10:22 am

Got it.  That's beyond my pay grade.

BTW, where you say you want a "the binary representation" of this...what you're actually asking for is a character-representation of the binary list of settings.  And do you need ASCII or EBCDIC?

Andy


On Thu, Oct 1, 2009 at 07:29, Fernando Del Carmen Taveras <fdelcarmen2000@...> wrote:
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 !
 
 

--- El mié 30-sep-09, AAO <aaorrock@...> escribió:

De: AAO <aaorrock@...>
Asunto: [jpos-users] Re: Binary representation of the bitmap field
A: jpos-users@...
Fecha: miércoles, 30 septiembre, 2009, 9:03 am


Are you sure about that?  That would be most unusual.  They don't want the BCD representation of the bitmap?

I pulled up a representation industry spec and it says of the Bitmap:

Bit Map, Primary b 64

But, then further on in this spec (which is typical), you see how they actually want you to send the data; in this example, you have two options:

b 8 bytes (if BCD option) or
16 hex bytes (if display option)

The first option is implemented by IFB_BITMAP

The second option is implemented by either IFA_BITMAP or IFE_BITMAP. 

In all cases the packager length you define is 16.  jPOS figures out the rest.

See also:

http://www.andyorrock.com/2007/08/iso8583-seconda.html

(Note that DE 1 is, in reality, the definition for the Secondary bitmap...but jPOS sees it as a nod to the primary, so those two are in lock-step).

Andy Orrock


On Wed, Sep 30, 2009 at 06:06, Fernando Del Carmen Taveras <fdelcarmen2000@...> wrote:
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



¡Obtén la mejor experiencia en la web!
Descarga gratis el nuevo Internet Explorer 8
http://downloads.yahoo.com/ieak8/?l=e1




¡Obtén la mejor experiencia en la web!
Descarga gratis el nuevo Internet Explorer 8
http://downloads.yahoo.com/ieak8/?l=e1




¡Obtén la mejor experiencia en la web!
Descarga gratis el nuevo Internet Explorer 8
http://downloads.yahoo.com/ieak8/?l=e1 --~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the  "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to [hidden email]
To unsubscribe, send email to [hidden email]
For more options, visit this group at http://groups.google.com/group/jpos-users
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

[jpos-users] Re: Binary representation of the bitmap field

Alejandro Revilla
To clarify: one byte per bit? (that would be really weird)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the  "jPOS Users" group.
Please see http://jpos.org/wiki/JPOS_Mailing_List_Readme_first
To post to this group, send email to [hidden email]
To unsubscribe, send email to [hidden email]
For more options, visit this group at http://groups.google.com/group/jpos-users
-~----------~----~----~----~------~----~------~--~---

Reply | Threaded
Open this post in threaded view
|

[jpos-users] Re: Binary representation of the bitmap field

ROBERTO DE LA ROSA TORRES
In reply to this post by Fernando Del Carmen Taveras
Hola Fernando pusiste resolver tu problema?

On Wednesday, September 30, 2009 at 6:06:46 AM UTC-5, Fernando Del Carmen Taveras wrote:
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



¡Obtén la mejor experiencia en la web!
Descarga gratis el nuevo Internet Explorer 8
<a href="http://downloads.yahoo.com/ieak8/?l=e1" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdownloads.yahoo.com%2Fieak8%2F%3Fl%3De1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE66VRfu07JsYTrf4MkkEIimsSl9g&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Fdownloads.yahoo.com%2Fieak8%2F%3Fl%3De1\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNE66VRfu07JsYTrf4MkkEIimsSl9g&#39;;return true;">http://downloads.yahoo.com/ieak8/?l=e1

--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
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.
Reply | Threaded
Open this post in threaded view
|

Re: [jpos-users] Re: Binary representation of the bitmap field

Victor Salaman-Medina
Be aware that so far you are winning,  trying to wake up an 8 year old thread! Bravo :)

/V

On Wed, Mar 1, 2017 at 6:19 PM, ROBERTO DE LA ROSA TORRES <[hidden email]> wrote:
Hola Fernando pusiste resolver tu problema?

On Wednesday, September 30, 2009 at 6:06:46 AM UTC-5, Fernando Del Carmen Taveras wrote:
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



¡Obtén la mejor experiencia en la web!
Descarga gratis el nuevo Internet Explorer 8
http://downloads.yahoo.com/ieak8/?l=e1

--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
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.

--
--
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: [hidden email]
---
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 [hidden email].
To post to this group, send email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/CALK1SyyZxmywpviWVyoKXaYoSQeoiKRopd7d9C3B2n3ruV9e6A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.