Expand | ||||||
---|---|---|---|---|---|---|
| ||||||
|
MT2XML transforms SWIFT Message Type (MT) messages to XML conforming to the schemas issued by SWIFT in SWIFT Standards Developer Kit (SDK).
Configuration and Testing
Component Configuration
Figure 1 : MT2XML Configuration
Attributes
Error handling configuration
Please refer Error Handling section in Common Configurations page.
Standard Release MT Year
Year in which SWIFT released SDK schemas.
Standard Release Years supported by MT2XML component and available in this property are:
- 2012
- 2013
Message Schema File
Name of standard MT message schema present in Schema Repository , for example 'fin.202.2012.xsd. It is the Schema file according to which transformed XML conforms.
These schema files are present at the following location:
%FIORANO_HOME%\xml-catalog\fiorano\swift\mtxml\<StandardReleaseMTYear>.
The component supports MT-XML transformation of all MT messages.
Testing
Input and Output
Sample Input
A sample of message type MT101 – Request for Transfer:
{1:F01BNKACH22BIC00000000000}{2:I101BNKAGB22XBICU3005}{3:{113:XXXX}}{4: :20:FILEREF1 :21R:UKSUPPLIER090901 :28D:1/1 :50H:/8754219990 MAG-NUM INC. GENERAL A/C BANHOFFSTRASSE 30 ZURICH, SWITZERLAND :30:090905 :21:TRANSREF1 :32B:GBP12500, :59:/1091282 Beneficiary 1 LOW STREET 1 LONDON, UK :71A:OUR -} |
Output
XML output of the component for the above sample input:
Code Block | ||
---|---|---|
| ||
<?xml version="1.0" encoding="UTF-8"?> <FinMessage xmlns="urn:swift:xsd:mtmsg.2012"><!-line=0-> <Block1> <ApplicationIdentifier>F</ApplicationIdentifier> <ServiceIdentifier>01</ServiceIdentifier> <LogicalTerminalAddress>BNKACH22BIC0</LogicalTerminalAddress> <SessionNumber>0000</SessionNumber> <SequenceNumber>000000</SequenceNumber> </Block1><!-line=0-> <Block2> <InputIdentifier>I</InputIdentifier> <MessageType>101</MessageType> <DestinationAddress>BNKAGB22XBIC</DestinationAddress> <MessagePriority>U</MessagePriority> <DeliveryMonitoring>3</DeliveryMonitoring> <ObsolescencePeriod>005</ObsolescencePeriod> </Block2><!-line=0-> <Block3><!-line=0-> <F113>XXXX</F113> </Block3><!-line=0-> <Block4> <Document xmlns="urn:swift:xsd:fin.101.2012"> <MT101> <SeqA> <F20a><!-line=1-> <F20>FILEREF1</F20> </F20a> <F21a><!-line=2-> <F21R>UKSUPPLIER090901</F21R> </F21a> <F28a><!-line=3-> <F28D> <MessageIndex>1</MessageIndex> <Total>1</Total> </F28D> </F28a> <F50a_2><!-line=4-> <F50H> <Account>8754219990</Account> <NameAndAddress> <Line>MAG-NUM INC.</Line> <Line>GENERAL A/C</Line> <Line>BANHOFFSTRASSE 30</Line> <Line>ZURICH, SWITZERLAND</Line> </NameAndAddress> </F50H> </F50a_2> <F30a><!-line=9-> <F30>090905</F30> </F30a> </SeqA> <SeqB> <F21a_1><!-line=10-> <F21>TRANSREF1</F21> </F21a_1> <F32a><!-line=11-> <F32B> <Currency>GBP</Currency> <Amount>12500,</Amount> </F32B> </F32a> <F59a><!-line=12-> <F59> <Account>1091282</Account> <NameAndAddress> <Line>Beneficiary 1</Line> <Line>LOW STREET 1</Line> <Line>LONDON, UK</Line> </NameAndAddress> </F59> </F59a> <F71a><!-line=16-> <F71A>OUR</F71A> </F71a> </SeqB> </MT101> </Document> </Block4> </FinMessage> |
Note |
---|
An exception is thrown if the input is not a valid SWIFT MT message. |