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 » 3 input message XML to CWF convertion dynamically

Post new topic  Reply to topic
 3 input message XML to CWF convertion dynamically « View previous topic :: View next topic » 
Author Message
KK
PostPosted: Wed Dec 11, 2002 5:32 pm    Post subject: 3 input message XML to CWF convertion dynamically Reply with quote

Newbie

Joined: 09 Dec 2002
Posts: 8

hi folks thanks for previous reply.


now i have a question.

I have one message set say msgSet and 3 messages in it suppose
messageType1
messageType2
and messageType3


and i have one message flow
with

INPUTNODE-->CATCH-->COMPUTE---->OUTPUTNODE


my input for all 3 messageTypes is XML and out put from message flow is cobol format fixed lenth string(CWF).

now my question is:

How can I check the root element for each message comming in my messageflow and then accordingly apply relevant message Type for XML-TO-CWF output conversion.

thanks in adv,
KK.
Back to top
View user's profile Send private message
udaybho
PostPosted: Thu Dec 12, 2002 7:49 am    Post subject: Reply with quote

Voyager

Joined: 09 May 2002
Posts: 94
Location: Chicago

I am assuming your message will have MQRFH2 header and you will pass the message template information (MessageType, Messageset, domain) through MQRFH2.

If your case is the way I mentioned above, then check MQRFH2 header for the MessageType and then set the output Format in Properties.

Uday Bhosle
Back to top
View user's profile Send private message Send e-mail
KK
PostPosted: Thu Dec 12, 2002 3:07 pm    Post subject: Reply with quote

Newbie

Joined: 09 Dec 2002
Posts: 8

thanks uday,
but my message doed not have RFH2 header it is JMS message with target client MQ.


can anybody giude me using routeTOLabel stuff.
i think this shud be useful but i dono..




Thanks in adv,
Ajju.
Back to top
View user's profile Send private message
lung
PostPosted: Thu Dec 12, 2002 4:55 pm    Post subject: Reply with quote

Master

Joined: 27 Aug 2002
Posts: 291
Location: Malaysia

KK, I would suggest the following flow...

Input -> Compute -> RCD -> Compute -> Output

You do not need a TryCatch node after the Input node because the Input node has its own TryCatch function (there is a 'Catch' terminal there).

There has to be a field in your incoming XML message that signifies which messagetype it corresponds to. For example...

<Msg><MsgType>1</MsgType></Msg>

Then you can SET OutputRoot.Properties.MessageType = InputBody.MsgType;

However, if your root tag name identifies the messagetype, then you have to read up on the FIELDNAME function

The RCD node is required to parse your message into MRM-XML. The second compute node is required to convert your message into MRM-CWF format.

Hope this helps.
_________________
lung
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
KK
PostPosted: Sun Dec 15, 2002 4:51 pm    Post subject: Reply with quote

Newbie

Joined: 09 Dec 2002
Posts: 8

thanks lung,

one more thing my input message has its root element that specify the parser to apply to it.

so if i choose the FIELDNAME in the output property then what shud be the other parameters in RCD node.

i mean i shud not specify the message type in RCD.... is this right?

as my 3 input message which has same message set with XML as input and output cobol CWF format.

thanks for u'r help,
KK.
Back to top
View user's profile Send private message
KK
PostPosted: Mon Dec 16, 2002 10:12 am    Post subject: Reply with quote

Newbie

Joined: 09 Dec 2002
Posts: 8

thanks lung,

its working perfect.


thanks very much for all u'r help.

KK
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 » 3 input message XML to CWF convertion dynamically
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.