Peter Paul - 2018-12-08

My receiving server side is expecting this field to be in bytes (8 byte).
below is how i pack the F52 after computing the pinblock. which is 16 in Hexadecimal

isomsg.setValue(52,CryptoUtils.hexToBytes(pinBlock), IsoType.BINARY, 8);

this is computed pinBlock=E2F347C04A59634D from client in hex

below is the recived data on server side in binary in bitmap represetantion, unfortunately the pinblock is received as its in HEX i was expcting something like e2 f3 47 c0 4a 59 63 4d which is in bytes[8]. the Hex introduce extra 8 position hence the parsing of message fails. Could you please advise where i'm doing wrong during creation of message

this is the xml definition of the field

<field num="52" type="BINARY" length="8" />

binary data
0000(0000) 30 32 30 30 46 32 33 41 34 34 44 35 32 39 45 30 | 0200F23A44D529E0
0016(0010) 39 31 32 36 30 30 30 30 30 30 30 30 35 32 30 30 | 9126000000005200
0032(0020) 30 30 32 30 31 36 36 30 34 39 38 30 31 30 30 30 | 0020166049801000
0048(0030) 30 30 30 30 31 39 30 31 30 30 30 30 30 30 30 30 | 0000190100000000
0064(0040) 30 30 30 37 30 30 30 30 31 32 30 37 31 37 34 37 | 0007000012071747
0080(0050) 30 37 30 30 31 39 38 30 31 37 34 37 30 37 31 32 | 0700198017470712
0096(0060) 30 37 31 32 30 37 36 30 31 31 30 30 30 30 30 31 | 0712076011000001
0112(0070) 32 44 30 30 30 30 30 30 30 30 44 30 30 30 30 30 | 2D00000000D00000
0128(0080) 30 30 30 30 36 36 30 34 39 38 30 33 30 36 30 34 | 0000660498030604
0144(0090) 39 38 30 31 30 30 30 30 30 30 30 31 39 3d 32 31 | 9801000000019=21
0160(00a0) 30 39 32 30 36 38 33 38 30 30 31 38 33 34 31 31 | 0920683800183411
0176(00b0) 37 30 30 31 39 38 30 35 30 31 41 5a 41 30 30 31 | 7001980501AZA001
0192(00c0) 30 31 41 5a 41 30 30 31 30 31 30 30 30 30 30 30 | 01AZA00101000000
0208(00d0) 30 32 35 35 36 38 33 35 34 32 37 31 30 36 30 34 | 0255683542710604
0224(00e0) 39 38 30 30 31 20 20 20 20 20 20 20 20 20 20 20 | 98001
0240(00f0) 20 20 20 20 20 20 20 20 20 38 33 34 45 32 46 33 |          834*E2F3*
0256(0100) 34 37 43 30 34 41 35 39 36 33 34 44 30 30 34 31 | *47C04A59634D*0041
0272(0110) 35 31 30 30 31 32 30 30 30 30 30 30 30 30 31 39 | 5100120000000019
0288(0120) 38 30 31 30 37 32 35 35 36 38 33 35 34 32 37 31 | 8010725568354271
0304(0130) 30 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 | 0
0320(0140) 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |
0336(0150) 41 47 45 4e 43 59 2d 3e 55 4d 4f 4a 41 20 20 20 | AGENCY->UMOJA
0352(0160) 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 |
0368(0170) 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 30 | 0
0384(0180) 30 30 30 30 30 30 30 31 39 38 30 20 20 20 20 20 | 00000001980
0400(0190) 30 30 36 36 30 34 39 38 30 41 47 45 4e 54 5f 43 | 006604980AGENT_C
0416(01a0) 41 52 44 5f 57 49 54 48 44 52 41 57 41 4c 20 20 | ARD_WITHDRAWAL
0432(01b0) 20 20 30 36 36 30 34 39 38 30 31 32 30 30 31 30 | 06604980120010
0448(01c0) 30 30 31 30 30 31 39 33 30 31 35 32 31 31 32 30 | 0010019301521120
0464(01d0) 31 32 31 33 31 34 34 30 32 31 1213144021        |