I have used JPOS library for creating ISO message but I am not getting any response, The call which I have initiated is SIGN-ON. The code which i have implemented and request is mentioned below.
length 42 0x0000: 4500 005e 4448 4000 4006 8842 0a14 5140 E..^DH@.@..B..Q@ 0x0010: 0a5f 085d 952e 30c8 5cdb c683 49e6 692d ._.]..0....I.i- 0x0020: 8018 01f6 6e60 0000 0101 080a 0775 0600 ....n`.......u.. 0x0030: 889f a492 3038 3030 8220 0100 0000 0000 ....0800........ 0x0040: 0400 0000 0000 0000 3132 3234 3139 3035 ........12241905 0x0050: 3136 3132 3033 3437 3030 3130 3033 16120347001003
channel.setHost("xx.xx.xx.xx", xxxxx);
channel.connect();
ISOMsg isoMsg = new ISOMsg();
isoMsg.setPackager(packager);
isoMsg.setMTI("0800");
isoMsg.set(7, "1224190516");
isoMsg.set(11, "120347");
isoMsg.set(24, "001");
isoMsg.set(70, "003");
byte[] send_PackedRequestData = isoMsg.pack();
channel.send(send_PackedRequestData);```
For once, you have to set the packager to the channel and send the isoMsg
object not the bytes:
channel.setPackager(packager);
...
channel.send(isoMsg);
Additionally I don't see you calling channel.receive()
;
And if you did there are many possible reasons why you wouldn't receive a response, among others: