ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Parsing teletype message

Post new topic  Reply to topic
 Parsing teletype message « View previous topic :: View next topic » 
Author Message
indu30111986
PostPosted: Wed Nov 23, 2011 3:10 am    Post subject: Parsing teletype message Reply with quote

Novice

Joined: 15 Nov 2011
Posts: 22

Input message :

Code:
-SK686/01APR CPHARN
DEL
4SMITH/EMR/BMRS/AMR/LMISS .R/CLS Y .R/REC 143/144/145/146
.R/IREC 100/101/102/103
CHG
1BELTOFT .R/CLS C .R/SEAT 5B .R/REC 38 .R/DOB 190554 .B/PLD
1BJOERNHOF/WINNIEMS .R/CLS Y .R/SEAT 12A .R/REC 42 .R/1INF
.B/0 .R/MID/ .R/ARC/1234567
CHG
1BELTOFT .R/CLS C .R/SEAT 5B .R/REC 38 .R/DOB 190554 .B/PLD
1BJOERNHOF/WINNIEMS .R/CLS Y .R/SEAT 12A .R/REC 42 .R/1INF
.B/0
1SCHERP/KJELLMR .R/CLS C .R/SEAT 5A .R/REC 135
.R/1INF JOHANSON/SVEN .B/2/20 .N/SR123456/2/ARN
-SK100/01APR ARNHEL
DEL
1JONES .R/CLS Y .R/REC 7 .R/IREC 9
CHG
1MEYER .R/CLS C .R/SEAT 15A .R/REC 15 .R/IREC 3 .B/1/25
.N/SR112233/1/HEL


output xml
Code:
<a1>
<c1>SK686/01APR CPHARN</c1>
       <DEL>4SMITH/EMR/BMRS/AMR/LMISS .R/CLS Y .R/REC                   143/144/145/146
         .R/IREC 100/101/102/103
       </DEL>
        <CHG>1BELTOFT .R/CLS C .R/SEAT 5B .R/REC 38 .R/DOB 190554 .B/PLD
1BJOERNHOF/WINNIEMS .R/CLS Y .R/SEAT 12A .R/REC 42 .R/1INF
.B/0 .R/MID/ .R/ARC/1234567
        </CHG>
         <CHG>1BELTOFT .R/CLS C .R/SEAT 5B .R/REC 38 .R/DOB 190554 .B/PLD
1BJOERNHOF/WINNIEMS .R/CLS Y .R/SEAT 12A .R/REC 42 .R/1INF
.B/0
1SCHERP/KJELLMR .R/CLS C .R/SEAT 5A .R/REC 135
.R/1INF JOHANSON/SVEN .B/2/20 .N/SR123456/2/ARN
        </CHG>
<c2><SK100/01APR ARNHEL/c2>
        <DEL>1JONES .R/CLS Y .R/REC 7 .R/IREC 9</DEL>
        <CHG>1BELTOFT 1MEYER .R/CLS C .R/SEAT 15A .R/REC                15 .R/IREC 3 .B/1/25 .N/SR112233/1/HEL
        </CHG>
</a1>


please help how to create the message set to arrive with that output xml
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Nov 23, 2011 4:23 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

First then you determine if you are going to use the CWF domain or the TDS domain to model your input message. The TDS domain is a better choice in a number of ways, but it can not be used for all models. So you might have to use CWF.

Either way, you have to decide based on your knowledge.

Then you create a message set and make sure it supports the correct domain.

Then you create a message definition in that message set.

Then you create a model within that message definition that will successfully parse your input message. And you write a very simple message flow to test that, and you adjust the model until you have it working.

Then you write code in Java or ESQL to construct an OutputRoot tree in the XMLNSC domain.

Welcome to Broker, please make sure to attend training or spend a lot of your time reading, thinking, and learning.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Parsing teletype message
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.