Postilion Subfield 127 pack/add

54 views
Skip to first unread message

netma...@gmail.com

unread,
Mar 1, 2018, 8:23:46 AM3/1/18
to jPOS Users
Hi,

We are trying to create the ISOMsg in postilion format using PostPackager. While creating isomsg, getting exception while adding the field 127 as it is subfield.

Below is code snippet:

ISOMsg isoMsg = new ISOMsg();
PostPackager postPack = new PostPackager();

isoMsg.setMTI("0100");
isoMsg.set(3,"010000");

ISOMsg fld27 = new ISOMsg();
fld27.set(10,"Test");
fld27.set(33,"5757678");

isoMsg.set(127,fld127);

receive the exception at above line as field is not subfield.

Please help to add subfield into isomsg.



Thanks,
prd

chhil

unread,
Mar 1, 2018, 8:41:33 AM3/1/18
to jpos-...@googlegroups.com
Assuming one is a typo 
fld27 vs fld127.

You can simply set subfield using... 

isoMsg.set("127.10" ,"test");


-chhil



--
--
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: sa...@jpos.org
---
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 jpos-users+unsubscribe@googlegroups.com.
To post to this group, send email to jpos-...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jpos-users/00836a68-4f60-49cd-8193-0a74ce9e7ceb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages