Packager for Sub Fields of Subfield

195 views
Skip to first unread message

cap10mycap10

unread,
Sep 9, 2021, 9:24:15 AM9/9/21
to jPOS Users
Hi Everyone

Anyone with an idea on how to create a customer packager for the below:

127.002
127.022.VasApplication
                                [vmobile-ussd]
127.022.VSUITE_REFERENCE
                                [d22cfb8d-dc6a-4c7c-8a88-eec70b04a819]
127.022.MSDN
                                [263773225949]
127.022.USER_REFERENCE
                                [trf]
127.022.BENEFICIARY_BANK_NAME
                                [Mybank]
127.022.TRANSFER_REASON
                                [Taxable Transaction]
127.022.UssdSessionId
                                [econet:263773225949:1892104849]
127.022.SENDER_FULL_NAME
                                [Noel Noel]
127.022.REFERENCE
                                [trf]
127.022.CHANNEL
                                [USSD]


Thanks

murtuza chhil

unread,
Sep 9, 2021, 10:32:36 PM9/9/21
to jPOS Users
You can parse it using a POJO  discussed in jpos slack.
If you want to go the difficult route, you will need to implement something along the lines of generic TLV packager https://github.com/jpos/jPOS/blob/master/jpos/src/main/java/org/jpos/iso/packager/GenericTaggedFieldsPackager.java
There are testcases under the test folder for it too.

-chhil

Mark Salter

unread,
Sep 10, 2021, 3:22:05 AM9/10/21
to jpos-...@googlegroups.com
On 10/09/2021 03:32, murtuza chhil wrote:
> You can parse it using a POJO  discussed in jpos slack.
> If you want to go the difficult route, you will need to implement
> something along the lines of generic TLV
Was this confirmed as "TLV" in slack?

Nothing in the original question hinted at that (no length indicator or
form etc), so I wanted to check for future passers by.


--
MarkS...@pm.me


OpenPGP_signature
publickey - "marksalter@protonmail.com" - c18a77dc.asc
signature.asc

murtuza chhil

unread,
Sep 10, 2021, 8:04:40 PM9/10/21
to jPOS Users
Here is the thread from slack. It was confirmed its 127.022 structured data field in a Postilion ISO8583 message.

-------------
Hello , anyone who can assist with how a packager that can handle this type of message: 127.022.VasApplication

 [vmobile-ussd]
127.022.VSUITE_REFERENCE
 [d22cfb8d-dc6a-4c7c-8a88-eec70b04a819]
127.022.MSDN
 [263773225949]
127.022.USER_REFERENCE
 [trf]
127.022.BENEFICIARY_BANK_NAME
 [Mybank]
127.022.TRANSFER_REASON
 [Taxable Transaction]
127.022.UssdSessionId
 [econet:263773225949:1892104849]
127.022.SENDER_FULL_NAME
 [Noel Noel]
127.022.REFERENCE
 [trf]
127.022.CHANNEL
 [USSD]
chillum  7:35 PM
Search jpos google group for postilion structured data. There is probably some parsing code there.  You will treat is as an opaque field and extract the data using a POJO.
chillum  7:36 PM
https://stackoverflow.com/questions/30516347/extracting-element-value-from-jpos-iso/39010068#39010068Hello , anyone who can assist with how a packager that can handle this type of message: 127.022.VasApplication
 [vmobile-ussd]
127.022.VSUITE_REFERENCE
 [d22cfb8d-dc6a-4c7c-8a88-eec70b04a819]
127.022.MSDN
 [263773225949]
127.022.USER_REFERENCE
 [trf]
127.022.BENEFICIARY_BANK_NAME
 [Mybank]
127.022.TRANSFER_REASON
 [Taxable Transaction]
127.022.UssdSessionId
 [econet:263773225949:1892104849]
127.022.SENDER_FULL_NAME
 [Noel Noel]
127.022.REFERENCE
 [trf]
127.022.CHANNEL
 [USSD]
chillum  7:35 PM
Search jpos google group for postilion structured data. There is probably some parsing code there.  You will treat is as an opaque field and extract the data using a POJO.
Reply all
Reply to author
Forward
0 new messages