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 » CWF TO XML along with adding data in the message flow

Post new topic  Reply to topic
 CWF TO XML along with adding data in the message flow « View previous topic :: View next topic » 
Author Message
parthiba_s
PostPosted: Mon Dec 09, 2002 4:58 am    Post subject: CWF TO XML along with adding data in the message flow Reply with quote

Novice

Joined: 12 Sep 2002
Posts: 20

Hai

I have a message in CWF format . I have to add a some X bytes to the incoming message(CWF) in the Message flow. Now I have to convert this new message into a XML message.


Solution 1
I have declared a Message Set with two Message . In first Message(A) I do not have the extra X bytes as elements . The second Message(B) I have constitutes of the X byte as elements .

Input node : Message Domain "MRM" and Message Format "CWF" and message A
Compute Node :I assign the Message from A to B and copy the X bytes of data into the Message (B) in ESQL.
Compute Node : Convert CWF to XML
"
SET OutputRoot.Properties.MessageFormat = 'XML';
SET OutputRoot.Properties.MessageDomain = 'MRM';
"
Output Node Passing the eitire message (B)

Solution 2
I have declared a Message Set with two Message . In first Message(A) I do not have the extra X bytes as elements . The second Message(B) I have constitutes of the X byte as elements .

Input node : Message Domain "BLOB"
RCD node : with Message domain "MRM" , Message set and Type as of Message (A) and Message Format "CWF"
Compute Node :I assign the Message from A to B and copy the X bytes of data into the Message (B) in ESQL.
Compute Node : Convert CWF to XML
"
SET OutputRoot.Properties.MessageFormat = 'XML';
SET OutputRoot.Properties.MessageDomain = 'MRM';
"
Output Node Passing the eitire message (B)


Details of Copy Book for message (A)

Code:
000102 01  OMSSTATACK.
000103     05  ACKNOWLEDGEMENT OCCURS 80 TIMES.
000103         10  ORDSTATUSCODE          PIC 9(02).
000103         10  WHSLRNO                PIC 9(05).
000103         10  ORDERNO                PIC 9(05).
000103         10  PDCN                   PIC X(05).
000103         10  ERRMSGTEXT             PIC X(80).
000103     05  FILLER1975             PIC X(1975).


Details of Copy Book for message (B)
Code:

000102 01  OMSSTATACK.
000103     05  INTERFACEINSTANCE      PIC X(50).
000103     05  INTERFACERUNTS         PIC X(20).
000103     05  RUNPARAMETER           PIC X(50).
000103     05  BRWEREYCODE            PIC X(04).
000103     05  FILLER36               PIC X(36).
000103     05  ACKNOWLEDGEMENT OCCURS 80 TIMES.
000103         10  ORDSTATUSCODE          PIC 9(02).
000103         10  WHSLRNO                PIC 9(05).
000103         10  ORDERNO                PIC 9(05).
000103         10  PDCN                   PIC X(05).
000103         10  ERRMSGTEXT             PIC X(80).
000103     05  FILLER1975             PIC X(1975).


ESQL Compute node 1

Code:
SET OutputRoot.MRM.INTERFACEINSTANCE = 'INTFC';
SET OutputRoot.MRM.INTERFACERUNTS = '2002-12-06 22:32:44';
SET OutputRoot.MRM.RUNPARAMETER = '  ';
SET OutputRoot.MRM.BRWEREYCODE = 'TEST';
SET OutputRoot.MRM.FILLER36 = '     ';

SET I = 1;
WHILE I <= 2 DO
  SET OutputRoot.MRM.ACKNOWLEDGEMENT[I].ORDSTATUSCODE = InputRoot.MRM.ACKNOWLEDGEMENT[I].ORDSTATUSCODE;
  SET OutputRoot.MRM.ACKNOWLEDGEMENT[I].WHSLRNO = InputRoot.MRM.ACKNOWLEDGEMENT[I].WHSLRNO;
  SET OutputRoot.MRM.ACKNOWLEDGEMENT[I].ORDERNO = InputRoot.MRM.ACKNOWLEDGEMENT[I].ORDERNO;
  SET OutputRoot.MRM.ACKNOWLEDGEMENT[I].PDCN = InputRoot.MRM.ACKNOWLEDGEMENT[I].PDCN;
  SET OutputRoot.MRM.ACKNOWLEDGEMENT[I].ERRMSGTEXT = InputRoot.MRM.ACKNOWLEDGEMENT[I].ERRMSGTEXT;
END WHILE;

SET OutputRoot.MRM.FILLER1975 = InputRoot.MRM.FILLER1975;


Both these solutions are failing .

Could you pls suggest any other solution or any suggestion to make this work

Pls do reply back as this is very urgent Requirement .

Regards
S.Parthiban
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
kwelch
PostPosted: Mon Dec 09, 2002 10:35 am    Post subject: Reply with quote

Master

Joined: 16 May 2001
Posts: 255

parthiba_s,

If acknowledgement occurs 80 times and you are using that for your output you must fill 80 bytes. However, I am kind of confused because you said you were formatting XML output? Could you give more details and what error messges you are getting?

Karen
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » CWF TO XML along with adding data in the message flow
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.