...
Note |
---|
An exception is thrown if the input is not a valid SWIFT MT message. |
Functional Demonstration
Use Feeder and Display components to send sample input and check the response respectively.
Figure 4: Event process demonstrating scenarios
Scenario 1 -
...
Using MT103 with MT Year 2020
This scenario demonstrates the transformation of a message in MT format to XML using MT101 XML using MT103 message type.
Configure the MT2XML component with the MT year 2018 2020 and provide the location for the schema.
Info |
---|
Schema file used in this example is "fin.101103.20182020.xsd" from the sample schema location %FIORANO_HOME%\xml-catalog\fiorano\swift\mtxml\20182020. |
Figure 45: MT2XML microservice configured with MT101 MT103 (20182020) with the schema file path provided
Use Feeder and Display components to send sample input and check the response respectively.
Figure 5: Event process demonstrating Scenario 1
Sample Input
After running the event process, click the Send button in the Feeder window to send the following input message to the MT2XML microservice.
Code Block | ||
---|---|---|
| ||
{1:F01AAAAGRA0AXXX0057000289}{2:O1030919010321BBBBGRA0AXXX00570001710103210920N}{3:{108:MT103 003 OF 045}{121:c8b66b47-2bd9-48fe-be90-93c2096f27d2}}{4:
:20:5387354
:23B:CRED
:23E:PHOB/20.527.19.60
:32A:000526USD1101,50
:33B:USD1121,50
:50K:FRANZ HOLZAPFEL GMBH
VIENNA
:52A:BKAUATWW
:59:723491524
C. KLEIN
BLOEMENGRACHT 15
AMSTERDAM
:71A:SHA
:71F:USD10,
:71F:USD10,
:72:/INS/CHASUS33
-}{5:{CHK:DE1B0D71FA96}} |
Figure 6: Feeder window with the sample message
Output
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<?xml version="1.0" encoding="UTF-8"?>
<FinMessage xmlns="urn:swift:xsd:mtmsg.2020"><!--line=0-->
<Block1>
<ApplicationIdentifier>F</ApplicationIdentifier>
<ServiceIdentifier>01</ServiceIdentifier>
<LogicalTerminalAddress>AAAAGRA0AXXX</LogicalTerminalAddress>
<SessionNumber>0057</SessionNumber>
<SequenceNumber>000289</SequenceNumber>
</Block1><!--line=0-->
<Block2>
<OutputIdentifier>O</OutputIdentifier>
<MessageType>103</MessageType>
<InputTime>0919</InputTime>
<MessageInputReference>
<Date>010321</Date>
<LTIdentifier>BBBBGRA0A</LTIdentifier>
<BranchCode>XXX</BranchCode>
<SessionNumber>0057</SessionNumber>
<ISN>000171</ISN>
</MessageInputReference>
<Date>010321</Date>
<Time>0920</Time>
<MessagePriority>N</MessagePriority>
</Block2><!--line=0-->
<Block3><!--line=0-->
<F108>MT103 003 OF 045</F108><!--line=0-->
<F121>c8b66b47-2bd9-48fe-be90-93c2096f27d2</F121>
</Block3><!--line=0-->
<Block4>
<Document xmlns="urn:swift:xsd:fin.103.2020">
<MT103>
<F20a><!--line=1-->
<F20>5387354</F20>
</F20a>
<F23a_1><!--line=2-->
<F23B>CRED</F23B>
</F23a_1>
<F23a_2><!--line=3-->
<F23E>
<InstructionCode>PHOB</InstructionCode>
<AdditionalInformation>20.527.19.60</AdditionalInformation>
</F23E>
</F23a_2>
<F32a><!--line=4-->
<F32A>
<Date>000526</Date>
<Currency>USD</Currency>
<Amount>1101,50</Amount>
</F32A>
</F32a>
<F33a><!--line=5-->
<F33B>
<Currency>USD</Currency>
<Amount>1121,50</Amount>
</F33B>
</F33a>
<F50a><!--line=6-->
<F50K>
<NameAndAddress>
<Line>FRANZ HOLZAPFEL GMBH</Line>
<Line>VIENNA</Line>
</NameAndAddress>
</F50K>
</F50a>
<F52a><!--line=8-->
<F52A>
<IdentifierCode>BKAUATWW</IdentifierCode>
</F52A>
</F52a>
<F59a><!--line=9-->
<F59>
<NameAndAddress>
<Line>723491524</Line>
<Line>C. KLEIN</Line>
<Line>BLOEMENGRACHT 15</Line>
<Line>AMSTERDAM</Line>
</NameAndAddress>
</F59>
</F59a>
<F71a_1><!--line=13-->
<F71A>SHA</F71A>
</F71a_1>
<F71a_2><!--line=14-->
<F71F>
<Currency>USD</Currency>
<Amount>10,</Amount>
</F71F>
</F71a_2>
<F71a_2><!--line=15-->
<F71F>
<Currency>USD</Currency>
<Amount>10,</Amount>
</F71F>
</F71a_2>
<F72a><!--line=16-->
<F72>
<NarrativeStructuredFormat>
<Line1>
<Code>INS</Code>
<Narrative>CHASUS33</Narrative>
</Line1>
</NarrativeStructuredFormat>
</F72>
</F72a>
</MT103>
</Document>
</Block4><!--line=17-->
<Block5><!--line=17-->
<CHK>DE1B0D71FA96</CHK>
</Block5>
</FinMessage> |
Figure 7: Display window with the output message for Scenario 1 input
Scenario 2 - Using MT101 with MT Year 2018
This scenario demonstrates the transformation of a message in MT format to XML using MT101 message type.
Configure the MT2XML component with the MT year 2018 and provide the location for the schema.
Info |
---|
Schema file used in this example is "fin.101.2018.xsd" from the sample schema location %FIORANO_HOME%\xml-catalog\fiorano\swift\mtxml\2018. |
Figure 8: MT2XML microservice configured with MT101 (2018) with the schema file path provided
Sample Input
After running the event process, click the Send button in the Feeder window to send the following input message to the MT2XML microservice.
Code Block | ||
---|---|---|
| ||
{1:F01SAESVAV0AXXX0466020121}{2:O1011538070522LRLRXXXX4A0700005910650705221739N}{3:{108:MT101 001 OF 019}}{4: :20:00028 :28D:1/1 :50H:/VTB.2003.02 19Apr2002 :30:020419 :21:x :32B:USD1, :50L:x :59:/x x :71A:OUR -}{5:{CHK:24857F4599E7}{TNG:}} |
Figure 69: Feeder window with the sample message
Output
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<?xml version="1.0" encoding="UTF-8"?> <FinMessage xmlns="urn:swift:xsd:mtmsg.2018"><!--line=0--> <Block1> <ApplicationIdentifier>F</ApplicationIdentifier> <ServiceIdentifier>01</ServiceIdentifier> <LogicalTerminalAddress>SAESVAV0AXXX</LogicalTerminalAddress> <SessionNumber>0466</SessionNumber> <SequenceNumber>020121</SequenceNumber> </Block1><!--line=0--> <Block2> <OutputIdentifier>O</OutputIdentifier> <MessageType>101</MessageType> <InputTime>1538</InputTime> <MessageInputReference> <Date>070522</Date> <LTIdentifier>LRLRXXXX4</LTIdentifier> <BranchCode>A07</BranchCode> <SessionNumber>0000</SessionNumber> <ISN>591065</ISN> </MessageInputReference> <Date>070522</Date> <Time>1739</Time> <MessagePriority>N</MessagePriority> </Block2><!--line=0--> <Block3><!--line=0--> <F108>MT101 001 OF 019</F108> </Block3><!--line=0--> <Block4> <Document xmlns="urn:swift:xsd:fin.101.2018"> <MT101> <SeqA> <F20a><!--line=1--> <F20>00028</F20> </F20a> <F28a><!--line=2--> <F28D> <MessageIndex>1</MessageIndex> <Total>1</Total> </F28D> </F28a> <F50a_2><!--line=3--> <F50H> <Account>VTB.2003.02</Account> <NameAndAddress> <Line>19Apr2002</Line> </NameAndAddress> </F50H> </F50a_2> <F30a><!--line=5--> <F30>020419</F30> </F30a> </SeqA> <SeqB> <F21a_1><!--line=6--> <F21>x</F21> </F21a_1> <F32a><!--line=7--> <F32B> <Currency>USD</Currency> <Amount>1,</Amount> </F32B> </F32a> <F50a_1><!--line=8--> <F50L>x</F50L> </F50a_1> <F59a><!--line=9--> <F59> <Account>x</Account> <NameAndAddress> <Line>x</Line> </NameAndAddress> </F59> </F59a> <F71a><!--line=11--> <F71A>OUR</F71A> </F71a> </SeqB> </MT101> </Document> </Block4><!--line=12--> <Block5><!--line=12--> <CHK>24857F4599E7</CHK><!--line=12--> <TNG/> </Block5> </FinMessage> |
Figure 710: Display window with the output message for Scenario 1 2 input
Scenario
...
3 - Using MT103 with MT Year 2018
This scenario demonstrates the transformation of a message in MT format to XML using MT103 message type.
...
Info |
---|
Schema file used in this example is "fin.103.2018.xsd" from the sample schema location %FIORANO_HOME%\xml-catalog\fiorano\swift\mtxml\2018. |
Sample Input
Code Block | ||
---|---|---|
| ||
{1:F01AAAAGRA0AXXX0057000289}{2:O1030919010321BBBBGRA0AXXX00570001710103210920N}{3:{108:MT103 003 OF 045}{121:c8b66b47-2bd9-48fe-be90-93c2096f27d2}}{4: :20:5387354 :23B:CRED :23E:PHOB/20.527.19.60 :32A:000526USD1101,50 :33B:USD1121,50 :50K:FRANZ HOLZAPFEL GMBH VIENNA :52A:BKAUATWW :59:723491524 C. KLEIN BLOEMENGRACHT 15 AMSTERDAM :71A:SHA :71F:USD10, :71F:USD10, :72:/INS/CHASUS33 -}{5:{CHK:DE1B0D71FA96}} |
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
<?xml version="1.0" encoding="UTF-8"?> <FinMessage xmlns="urn:swift:xsd:mtmsg.2018"><!--line=0--> <Block1> <ApplicationIdentifier>F</ApplicationIdentifier> <ServiceIdentifier>01</ServiceIdentifier> <LogicalTerminalAddress>AAAAGRA0AXXX</LogicalTerminalAddress> <SessionNumber>0057</SessionNumber> <SequenceNumber>000289</SequenceNumber> </Block1><!--line=0--> <Block2> <OutputIdentifier>O</OutputIdentifier> <MessageType>103</MessageType> <InputTime>0919</InputTime> <MessageInputReference> <Date>010321</Date> <LTIdentifier>BBBBGRA0A</LTIdentifier> <BranchCode>XXX</BranchCode> <SessionNumber>0057</SessionNumber> <ISN>000171</ISN> </MessageInputReference> <Date>010321</Date> <Time>0920</Time> <MessagePriority>N</MessagePriority> </Block2><!--line=0--> <Block3><!--line=0--> <F108>MT103 003 OF 045</F108><!--line=0--> <F121>c8b66b47-2bd9-48fe-be90-93c2096f27d2</F121> </Block3><!--line=0--> <Block4> <Document xmlns="urn:swift:xsd:fin.103.2018"> <MT103> <F20a><!--line=1--> <F20>5387354</F20> </F20a> <F23a_1><!--line=2--> <F23B>CRED</F23B> </F23a_1> <F23a_2><!--line=3--> <F23E> <InstructionCode>PHOB</InstructionCode> <AdditionalInformation>20.527.19.60</AdditionalInformation> </F23E> </F23a_2> <F32a><!--line=4--> <F32A> <Date>000526</Date> <Currency>USD</Currency> <Amount>1101,50</Amount> </F32A> </F32a> <F33a><!--line=5--> <F33B> <Currency>USD</Currency> <Amount>1121,50</Amount> </F33B> </F33a> <F50a><!--line=6--> <F50K> <NameAndAddress> <Line>FRANZ HOLZAPFEL GMBH</Line> <Line>VIENNA</Line> </NameAndAddress> </F50K> </F50a> <F52a><!--line=8--> <F52A> <IdentifierCode>BKAUATWW</IdentifierCode> </F52A> </F52a> <F59a><!--line=9--> <F59> <NameAndAddress> <Line>723491524</Line> <Line>C. KLEIN</Line> <Line>BLOEMENGRACHT 15</Line> <Line>AMSTERDAM</Line> </NameAndAddress> </F59> </F59a> <F71a_1><!--line=13--> <F71A>SHA</F71A> </F71a_1> <F71a_2><!--line=14--> <F71F> <Currency>USD</Currency> <Amount>10,</Amount> </F71F> </F71a_2> <F71a_2><!--line=15--> <F71F> <Currency>USD</Currency> <Amount>10,</Amount> </F71F> </F71a_2> <F72a><!--line=16--> <F72> <NarrativeStructuredFormat> <Line1> <Code>INS</Code> <Narrative>CHASUS33</Narrative> </Line1> </NarrativeStructuredFormat> </F72> </F72a> </MT103> </Document> </Block4><!--line=17--> <Block5><!--line=17--> <CHK>DE1B0D71FA96</CHK> </Block5> </FinMessage> |
Figure 8 11: Display window with the output message for Scenario 2 3 input