[jpos-users] Error unpacking field 35.

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[jpos-users] Error unpacking field 35.

Shekhar Jadhav
Hi all,

I am facing problems in splitting up DE 35  my packager xml for DE 35 looks like this.
<isofield id="35" length="37" name="Track 2 data" class="org.jpos.iso.IFA_LLBINARY" />

DE 35 data looks like this
[ 374622441715101175D26071361916993999999F ]
In which 37 is a length and rest of the data.

when i unpacked this field i getting data till second last digit looks like[374622441715005175D23071261916092999999]
F goes to next field. because of this remaining fields are not gets data correctly.

so can you help me to read DE-35 correctly with all data till including F .



--
--
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/1a7d627b-a55b-4113-af31-5fee542537c2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] Error unpacking field 35.

Alejandro Revilla

Are you sure this is what you get over the wire?

0000  33 37 34 36 32 32 34 34  31 37 31 35 31 30 31 31  3746224417151011
0010  37 35 44 32 36 30 37 31  33 36 31 39 31 36 39 39  75D2607136191699
0020  33 39 39 39 39 39 39 46                           3999999F

It seems to me you are converting it to HEX and then using IFA_LLBINARY. If you use the raw data and then use IFB_LLNUM, jPOS would take care of that extra ‘F’ padding for you.


--
--
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/CAAgSK%3Dk5%3DsqA28wp12ooQ12T%2BWZECapcuivenw0ezvpUgSZnQg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [jpos-users] Error unpacking field 35.

Shekhar Jadhav
so you mean .I have to provide raw data format which is[ 2, 0, 48, 32, 5, -128, 32, -64, 16, 4, 0, 16, 0, 0, 0, 0, 5, 80, -128, 0, 0, -125, 0, 33, 0, 1, 0, 55, 70, 34, 68, 23, 21, 0, 81, 117, -46, 48, 113, 38, 25, 22, 9, 41, -103, -103, -97, 49, 50, 51, 52, 53, 54, 55, 56, 49, 50, 51, 52, 53, 54, 55, 56, 32, 32, 32, 32, 32, 32, 32, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 48, 48, 48, 48, 49, 57] .

On Thursday, 2 March 2017 19:11:08 UTC+5:30, Alejandro Revilla wrote:

Are you sure this is what you get over the wire?

0000  33 37 34 36 32 32 34 34  31 37 31 35 31 30 31 31  3746224417151011
0010  37 35 44 32 36 30 37 31  33 36 31 39 31 36 39 39  75D2607136191699
0020  33 39 39 39 39 39 39 46                           3999999F

It seems to me you are converting it to HEX and then using IFA_LLBINARY. If you use the raw data and then use IFB_LLNUM, jPOS would take care of that extra ‘F’ padding for you.

--
<a style="font-family:garamond,serif" href="http://twitter.com/apr" target="_blank" rel="nofollow" onmousedown="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ftwitter.com%2Fapr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFRt8creb486OVHOJ12erdzV1NRIg&#39;;return true;" onclick="this.href=&#39;http://www.google.com/url?q\x3dhttp%3A%2F%2Ftwitter.com%2Fapr\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNFRt8creb486OVHOJ12erdzV1NRIg&#39;;return true;">@apr

--
--
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/97a0b290-2b66-4e96-ac7b-64d35fdcf14c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...