Jonathan
unread,Nov 12, 2009, 7:19:34 AM11/12/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to jPOS Users
Hi,
I've been trying to define my message schema for NDC+ Transaction
Request messages. This is a particularly complex format, and I don't
think that FSDMsg, as it currently stands, can support this. The main
problems are:
1. Fields are only included depending on a configuration parameter.
for example, the Message Authentication Code Data field (the last one
in the message) only appears in the message if the Data Security
feature is selected.
Note: if the flag is not set, then the fields and any field separators
do not appear at all. I can envisage xml like:
<group condition="MAC-Security">
<field id="MAC Data" length="8" type="A"/>
</group>
The packager would need access to a Set<String> containing features
that are enabled for this message.
2. Repeating fields, or repeating groups of fields. Sometimes, these
are marked with an ID field, and sometimes, the repeating fields end
with a group separator, or some other marker. I have no idea how this
should be designed.
Packing the message with these added features is not much of a
problem, however, unpacking is! Currently, the unpacker never has to
look ahead. Yes the key fields tell it where next to go, but it never
has to do any backtracking. I want to avoid this if possible.
Firstly, am I mad, enhancing FSDMsg? I feel it is going to grow into
something like the ISO 8583 packagers and fields, with its nested
packagers, and message bitmaps.
Secondly, is there an alternative solution that I am missing? Yes, I
am aware that the exact message format should be documented somewhere
by the bank, but that does not apply in my case, as I'm writing an ATM
controller, and it has to be flexible in the schemas it handles.
Thanks,
Jonathan