Author |
Message
|
m.schneider |
Posted: Tue May 29, 2007 2:19 am Post subject: How to define groups for SWIFT sequence in a message set? |
|
|
Centurion
Joined: 10 Apr 2007 Posts: 132 Location: Germany
|
Hello,
I am facing the following problem. How can I represent the following structure?
There is no problem defining the fields 20C and 23G, but how can I define a group surround them?
I tried using ":16R:GENL" as Group Indicator and Group Terminator in a Group, but it doesnt work?
Does anyone have advice for this problem?
:16R:GENL /* start of block */
:20C::SEME//NLBHN00000517877
:23G:NEWM
:16S:GENL /* end of block */ |
|
Back to top |
|
 |
kimbert |
Posted: Tue May 29, 2007 3:51 am Post subject: |
|
|
 Jedi Council
Joined: 29 Jul 2003 Posts: 5542 Location: Southampton
|
Quote: |
I tried using ":16R:GENL" as Group Indicator and Group Terminator in a Group, but it doesnt work?
Does anyone have advice for this problem?
|
Modelling a SWIFT message is very difficult. Have you considered buying the SWIFT message sets? http://www.mqseries.net/phpBB2/viewtopic.php?t=35813
Tip : "it doesn't work" is not the best way to describe a parsing problem. At least quote the error message. |
|
Back to top |
|
 |
Lisa |
Posted: Tue May 29, 2007 10:34 am Post subject: |
|
|
Master
Joined: 07 Jun 2002 Posts: 287 Location: NJ
|
Toolkit 6.0.2 has a sample SWIFT message set. Take a look at this sample. You should be able to resolve your problem.
By the way, in my opinion, it does not make sense to purchase the SWIFT support pac from IBM if your company only needs a few message types.
My company only uses the MT5* series and we created everything from scratch.
Lisa |
|
Back to top |
|
 |
m.schneider |
Posted: Tue May 29, 2007 11:48 pm Post subject: |
|
|
Centurion
Joined: 10 Apr 2007 Posts: 132 Location: Germany
|
Thanks for the answers.
I only need a few message types from the 5* messages. I also heard buying the messages is pretty expensive.
The MT103 example is a good start, I already learned a lot from the definitions there. But the MT103 has not Sequences which always start with 16R and end with 16S.
I still don't understand how to model a sequence/ block that starts with a certain tag and ends with another one. |
|
Back to top |
|
 |
Mensch |
Posted: Wed May 30, 2007 1:37 am Post subject: |
|
|
Disciple
Joined: 17 Jul 2005 Posts: 166
|
m.schneider wrote: |
The MT103 example is a good start, I already learned a lot from the definitions there. But the MT103 has not Sequences which always start with 16R and end with 16S.
I still don't understand how to model a sequence/ block that starts with a certain tag and ends with another one. |
Hi,
If your group indicators and terminators are different treat them as a local element in particular sequence..  _________________ Thanks and Regards ,
Mensch |
|
Back to top |
|
 |
m.schneider |
Posted: Tue Jun 05, 2007 12:57 am Post subject: |
|
|
Centurion
Joined: 10 Apr 2007 Posts: 132 Location: Germany
|
THX a lot.
That is exactly how it can be done, ...
The definition is quite tricky, two groups and the inner one has 16R:GENL as Data Pattern. There is a need of a better documentation about such issues.
The XML extract looks like this
<SW16R>GENL</SW16R>
<SW20C>
<QUALIFIER>SEME</QUALIFIER>
<REFERENCE>NLBHN00000517903</REFERENCE>
</SW20C>
<SW23G>
<FUNCTION>NEWM</FUNCTION>
</SW23G>
<SW16S>GENL</SW16S> |
|
Back to top |
|
 |
prabha |
Posted: Thu Jun 14, 2007 1:19 am Post subject: |
|
|
Newbie
Joined: 13 Jul 2006 Posts: 9 Location: india-chennai
|
Hi
How u were able to convert the SWIFT FIN msg to SWIFT XML msg ?Is there any parser or node or any method to achieve this
SWIFT FIN msg
:16R:GENL /* start of block */
:20C::SEME//NLBHN00000517877
:23G:NEWM
:16S:GENL /* end of block */
TO
The XML extract
<SW16R>GENL</SW16R>
<SW20C>
<QUALIFIER>SEME</QUALIFIER>
<REFERENCE>NLBHN00000517903</REFERENCE>
</SW20C>
<SW23G>
<FUNCTION>NEWM</FUNCTION>
</SW23G>
<SW16S>GENL</SW16S> |
|
Back to top |
|
 |
Mensch |
Posted: Thu Jun 14, 2007 2:15 am Post subject: |
|
|
Disciple
Joined: 17 Jul 2005 Posts: 166
|
Compute node  _________________ Thanks and Regards ,
Mensch |
|
Back to top |
|
 |
m.schneider |
Posted: Thu Jun 14, 2007 5:21 am Post subject: |
|
|
Centurion
Joined: 10 Apr 2007 Posts: 132 Location: Germany
|
I used the example supplied by the toolkit 6.0.2 and build a SWIFT-message which also has XML as wire format.
The example provides the mapping of a MT102 message with header and trailer. It is a really good example for the beginning |
|
Back to top |
|
 |
|