Posted: Tue Jun 26, 2007 1:05 pm Post subject: Message translation by using stylesheet
Partisan
Joined: 25 Jul 2006 Posts: 369
hi guys,
We are using
request message flow and reply message flow and stylesheets are used for the translation.
the stylesheet is converting the message properly when we use other tools like Rational BUT when we implement the stylesheet in the XML transformation node, I am getting an error like Translation error occured.
Along with the message, I am passing some more environment variables...
CREATE COMPUTE MODULE GeocodeODSServiceFanOut_SaveOriginalInfo
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
-- CALL CopyMessageHeaders();
CALL CopyEntireMessage();
-- If there is no RFH2 header, add one
IF CARDINALITY(OutputRoot.MQRFH2.*[]) = 0 THEN
CREATE NEXTSIBLING OF OutputRoot.MQMD DOMAIN 'MQRFH2';
SET OutputRoot.MQRFH2.usr.SOA.delete = 'yes';
END IF;
-- Save reply information in RFH2 header for later
SET OutputRoot.MQRFH2.usr.SOA.msgid = CAST(InputRoot.MQMD.MsgId AS CHAR);
SET OutputRoot.MQRFH2.usr.SOA.correlid = CAST(InputRoot.MQMD.CorrelId AS CHAR);
SET OutputRoot.MQRFH2.usr.SOA.report = CAST(InputRoot.MQMD.Report AS CHAR);
SET OutputRoot.MQRFH2.usr.SOA.msgtype = InputRoot.MQMD.MsgType;
SET OutputRoot.MQRFH2.usr.SOA.replytoq = InputRoot.MQMD.ReplyToQ;
SET OutputRoot.MQRFH2.usr.SOA.replytoqmgr = InputRoot.MQMD.ReplyToQMgr;
-- Save the contents of the Environment in RFH2 header to be restored later
SET OutputRoot.MQRFH2.usr.SOA.Variables = Environment.Variables;
RETURN TRUE;
END;
Do you think, I need to change these parameters also???
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