3

Does anyone has an example for assigning value to the 55th Field (Reserved ISO) in the ISO 8583 messages where it should be assigned with a TLV value?

Erick G. Hagstrom
  • 4,873
  • 1
  • 24
  • 38
zoey3
  • 170
  • 1
  • 2
  • 14

1 Answers1

0

The easiest way is to handle your field 55 as an opaque field (just a byte[]) and then use some of the org.jpos.tlv.* classes to create your TLV field.

Once you 'pack' your TLV field (using tlv.pack()) you can set that byte[] into your ISOMsg's field 55, i.e.:

m.set(55, tlv.pack());

apr
  • 1,288
  • 7
  • 8
  • Thanks for your help ! :) but how can i set the 55th field value ! – zoey3 Mar 31 '15 at 08:09
  • any idea about this one ! I'd be grateful – zoey3 Apr 02 '15 at 14:15
  • You use `ISOMsg.set (55, byte[])` as described above. – apr Apr 05 '15 at 01:19
  • I'm not sure if i totally understood what you described! I searched for example following what you mentioned but couldn't find any . Can you please provide a full example ! – zoey3 Apr 07 '15 at 10:39
  • You use the ISOMsg.set method, using a `byte[]` as the second parameter. That will properly set the binary field. – apr Apr 08 '15 at 12:15