WIFE is an open source Java library for SWIFT messages parsing, writing and processing. The component is heavily tested and running in production environments since 2006.
Main features:
- Parsing of SWIFT MT messages into SwiftMessage Java objects.
- Writing SWIFT MT messages from SwiftMessage Java objects.
- De/Serialization of SwiftMessage objects into XML.
- Hibernate mappings for SwiftMessage objects simplify persitence in applications.

All SWIFT message categories (MT0xx to MT9xx) are supported, including System and Service message. The current version is compliant with ISO 15022.
Code snapshot:
String fin = "{1:F01BANKDEFMAXXX2039063581..."; SwiftMessage m = (new SwiftParser()).parse(fin); String val32a = m.getBlock3().getTagValue("32A"); //get a simple value tag String[] list71 = m.getBlock3().getTagValues("71F"); //get a repeated value tag
The method above is new API (CVS version) not officially released. You can use instead: String messageToParse = "{...}"; m = (new SwiftParser(messageToParse)). message();
|