Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java SWIFT Library

Tags:

java

swift-mt

I'm looking for a Java library for SWIFT messages. I want to

  • parse SWIFT messages into an object model
  • validate SWIFT messages (including SWIFT network validation rules)
  • build / change SWIFT messages by using an object model

Theoretically, I need to support all SWIFT message types. But at the moment I need MT103+, MT199, MT502, MT509, MT515 and MT535.

So far I've looked at two libraries

  • AnaSys Message Objects (link text)
  • Datamation SWIFT Message Suite (link text)

Both libraries allow to accomplish the tasks mentioned above but in both cases I'm not really happy.

AnaSys uses a internal XML representation for all SWIFT messages which you need to know in order to access the fields of a message. And you need to operate on the DOM of the XML representation, there is no way to say "get the contents of field '50K' of the SWIFT message".

And the Datamation library seems to have the nicer API but does not find all errors.

So does anyone know other SWIFT libraries to use?

like image 881
Johannes K. Lehnert Avatar asked Aug 24 '08 17:08

Johannes K. Lehnert


People also ask

What is swift parser?

A library for turning unstructured data into structured data, with a focus on composition, performance, generality, and invertibility: Composition: Ability to break large, complex parsing problems down into smaller, simpler ones.

How can I compare two swift messages?

get(key). equals(target_multimap. get(key))) then compare the values in both the multimap and print the values which are different with the multimap.

How do I write a swift message?

From the Administration menu, select Business Process > Message Entry Workstation. Under Create, next to New Message, click Go!. Note: The New Message option is displayed only if you have the Message Entry Create permission added to your user account.


1 Answers

Have you looked at WIFE? We use that in our application which translates SWIFT messages to an internal XML format and back again. We haven't had any problems with it. Also, it's licensed under the LGPL, so you can hack it up if you need to. Check it out.

like image 130
jodonnell Avatar answered Sep 20 '22 18:09

jodonnell