JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Java CAPS SWIFT Message Library User's Guide     Java CAPS Documentation
search filter icon
search icon

Document Information

SWIFT Message Library

Overview of SWIFT Message Libraries

Library Versions and Access

Installing the SWIFT Message Library

Increasing the Heap Size

To Increase the Heap Size for GlassFish

To Increase the Heap Size for NetBeans

Using the SWIFT Message Library

SWIFT Message Type OTDs

SWIFT Message Structure

Message Library and Collaboration Locations in NetBeans

SWIFT Message Type Reference

Category 1 Messages

Category 2 Messages

Category 3 Messages

Category 4 Messages

Category 5 Messages

Category 6 Messages

Category 7 Messages

Category 8 Messages

Category 9 Messages

Validation Collaborations

SWIFT Generic Library

SWIFT Message Library JAR Files

Using Message Validation Features

Basic Validation Features

Validation Components

Validation Methods

Validation Collaboration Definitions

Validation Operation

Basic validation steps

Library Methods

Message Validation Rules

Message Format Validation Rules (MFVR)

MFVR Validation Methods

MFVR Errors

In Collaboration Validation Methods

validate()

Description

Syntax

Parameters

Return Values

Throws

validateMFVR()

Description

Syntax

Parameters

Return Values

Throws

validateMPR()

Description

Syntax

Parameters

Return Values

Throws

Calling the Validation Methods in your Collaboration

SWIFT Projects

Importing a Sample Project

To Import a Sample Project

SWIFT Projects and NetBeans

About the SWIFT MX Validation Sample

Sample Project

Descriptions of components

Running the MX Sample Project

SWIFT Correlation Repository Sample

Prerequisites

Installation steps

Preparing an SCR flow

Designing an SCR flow

Linking the Domain Name and Direction to a Color

Using the SCR for Monitoring Flows

Using the Viewer for Monitoring Transactions

Using the SCR as Gatekeeper

Using the Viewer to Repair Messages

Updating BICDirService

Source of Information

Update Operation

BICDirService Method Operation

Lookup Method Definitions

Validation Method Definitions

BICDir Exceptions

Error message framework

Error Message General Form

Updating BICPlusIBAN

To Update BICPlusBAN Information

BICPlusIBAN Validation Method Definitions

Error Message Information

Error Messages

Setting the Debug Level

Message Examples

Parse Debug Level Message Example

Using SWIFT FIN-Based Funds OTDs

SWIFT Message Library Funds Features

Using SWIFT Message Library Java Classes

Relation to OTD Message Types

SWIFT Message Library Javadoc

OTD Library Java Classes

Using Message Validation Features

This section explains how to use specialized message validation features and Projects available with the SWIFT Message Library.

Basic Validation Features

The SWIFT Message Library performs validation operations through Java-based Collaboration Definitions that are packaged with the library. These Collaboration Definitions have the following validation features:

These validation features share the following use characteristics:

Installing the OTD library allows the Enterprise Service Bus and any Adapters you use with the library to provide full support for these features. The rest of this section provides a summary of how these features operate with the SWIFT Message Library.

Validation Components

In addition to components described under Basic Validation Features, the SWIFT Message Library also contains the following basic components:

Validation Methods

The SWIFT Message Library provides three OTD API methods, validate(), validateMPR(), and validateMFVR(), that can be invoked by a Collaboration to validate SWIFT OTDs directly in the Collaboration (see In Collaboration Validation Methods). This is an alternative to using the Validation Collaboration Definitions.

Validation Collaboration Definitions

Validation Collaboration Definitions are provided for many key SWIFT message types. These Collaboration Definitions, when combined with Enterprise Service Bus Services, become Java-based Collaborations that verify the syntax of the SWIFT messages.

Messages are verified by parsing the data into a structure that conforms to the SWIFT standard specifications. The validation functions use the Validation Collaborations to access specific data that is then verified according the algorithms of the Message Format Validation Rules (MFVR) specifications.

For lists of these Collaboration Definitions, see Message Validation Rules.

Validation Operation

You can combine the library’s validation features in any way to meet your business requirements. The SWIFT Message Library packages a prebuilt implementation that takes SWIFT messages from a JMS Queue or Topic and validates them individually, then writes the results to a specified JMS Queue or Topic. One set contains valid messages, and the other contains the invalid ones, along with messages indicating the errors generated.

Basic validation steps

Each validation Collaboration Definition has only the applicable tests for a specific OTD or message type, but they all operate according to the same general format, as follows:

For an explanation of using these Collaboration Definitions and the validation Project examples, see SWIFT Projects.

Library Methods

The SWIFT Message Library provides a set of runtime methods that allow you to manipulate OTD data in a variety of ways. The following methods are the most frequently used with validation operations:

In addition, the library has methods that allow you to perform basic but necessary operations with the OTDs. See Table 11.

Table 11 Basic OTD Methods

Method
Description
add()
Adds a repetition to a given child node.
append()
Adds given data at the end of existing data.
copy()
Copies given data at a specified point.
count()
Gives the count of node repetitions.
delete()
Erases data at a specified point.
get()
Retrieves data from a node.
has()
Checks whether a specified child node is present.
insert()
Inserts given data at a specified point.
length()
Returns the length of data contained in an object.
marshal()
Serializes internal data into an output stream.
remove()
Removes a given child node repetition.
reset()
Clears out any data held by an OTD.
size()
Returns the current number of repetitions for the current child node.
unmarshal()
Parses given input data into an internal data tree.

To help in your use of the SWIFT Message Library and its features, the library includes a Javadoc. You can see this document for complete details on all of these methods. See Table 12 for more information on this document and how to use it.