> There are two things that I am a bit uncertain of.
> The first is that this field is defined as LLLL ans. 9,999 which I do
> not see defined anywhere in jpos. Is there something that I can use
> to hold this?
You indicate that this field has a maximum length of 9999, so in jPOS if
you want this field to contain another structure (an ISOMsg) you need a
binary type, your attention initially needs to focus on how the length
is formatted in the message, this will help you chose the correct
'family' from IFA_LLLBINARY, IFB_LLL*BINARY or IFE_LLLBINARY.
IFA will use ASCII characters to indicate the length, IFB provides
various binary format (BCD,HEX etc) and IFE uses EBCDIC characters to
indicate the length.
Let's assume your message wants ASCII characters (4 digits in your case)
for the length, so I suggest you take IFA_LLBINARY and IFA_LLLLLBINARY
and make your own IFA_LLLLBINARY with a few changes. Comparing these
two classes should indicate what is required to change.
Now you have a class that perhaps is the correct length format...
> The second is I'm unsure if there is a way to use
> ISOMsg to build the content of field 113 and then add it to the 0100
> message.
ISOMsg fullMessage = new ISOMsg();
fullMessage.setPackager(fullMessagePackager);
fullMessage.setMTI("0100");
fullMessage.set(2,"1234567890123456");
ISOMsg field113 = new ISOMsg();
field113.setPackager(field113Packager());
field113.set(1,"field1");
field113.set(3,"field3");
field113.set(4,"field4");
fullMessage.set(113,field113);
> Any sample code, or examples would be appreciated. Thank
> you.
jPOS 1.5.0 includes an example using sub messages, see
jpos/src/examples/isomsg/Test.java
examine :-
/jpos/src/main/org/jpos/iso/packager/Base1Packager.java
&
/jpos/src/main/org/jpos/iso/packager/Base1_BITMAP126.java
for a packager and subfield packager example, and the tie between them.
HTH
--
Mark