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 » Message translation by using stylesheet

Post new topic  Reply to topic
 Message translation by using stylesheet « View previous topic :: View next topic » 
Author Message
chris boehnke
PostPosted: Tue Jun 26, 2007 1:05 pm    Post subject: Message translation by using stylesheet Reply with quote

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???

Please suggest.

thanks.
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 » Message translation by using stylesheet
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.