Posted: Mon Dec 09, 2002 4:58 am Post subject: CWF TO XML along with adding data in the message flow
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)
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 .
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?
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