I am using the WIFE
Java library to parse SWIFT
messages into JSON
format.
For messages that are "Output from Swift", it contains repeated blocks in the header
for {1:..}
and {4..}
as part of acknowledgement. While parsing the message, there is no output/error thrown. How can this be handled?
Also, if I use the library function for respective MT
class for say field 50k for MT103
and call a function say getcomponent1()
or getName&Address1()
, will it return the right value for this message with repeated 1
and 4
blocks?
Sample MT103
pasted below:
{1:F21XXXXXXBBAXXX9735415014}{4:{177:1410291057}{451:0}}{1:F01XXXXXNBBAXXX9735415014}{2:O1031057141029XXXXXNBBAXXX16235602381410291057U}{4:
:20:2039TT20W4407225
:23B:CRED
:32A:141029AUD844,00
:33B:AUD844,00
:50K:/XXXXXXXXXXXX XXXXXXXX
ABC LAW FIRM PTY LTD
19 MOORE STREET
TURNER
:52A:XXXXINBBXXX
:53A:NATAAU33
:57A:XXXXXNBBXXX
:59:/200006547541
ABC TECHNOLOGY SOLUTIONS PVT LT
LEVEL 2 BLOCK 1 TRANSASIA CORPORATE
PARK KAKKANAD
:70:ONLY BENEFICIARY BANK IS AUTHORIZED
TO CONVERT THE CURRENCY
:71A:OUR
:72:/REC/DAG29102014117
//INCOMPLETE INSTRUCTION PURPOSE CO
//DE CHARGES AUD 20 DEDUCTED
-}{5:{MAC:00000000}{CHK:8A860CBABFFD}}{S:{SAC:}{COP:S}}