javaswift-mt

Java SWIFT Library


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

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

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?


Solution

  • SWIFT is releasing a "Standards Developer Kit" which includes an "MT/XML Schema Library".

    From the doc: "The MT/XML Schema Library is a complete set of XML schema definitions for MT messages, and software which shows how to convert messages from an MT format to an MT XML representation and back. This approach allows XML integration between applications while the MT (FIN) format will continue to be transported over the SWIFT network."

    Java source code will also be made available, again from the doc: "Working sample Java source code that converts a message in MT format to an XML instance and from an XML instance to a message in MT format."

    See: http://www.swift.com/support/drc/develop/standards.page

    This can be a great aid in dealing with FIN messages in XML syntax.