Posted: Wed Nov 20, 2002 9:23 am Post subject: Problems with XML -> MRM -> XML
Novice
Joined: 20 Nov 2002 Posts: 14
Hi there,
we use WS MQ Integrator 2.1 (CSD03) and trying to convert
a XML message (XML domain) into a MRM message. The MRM message set is based on an imported COBOL copybook. The outgoing message
is send to host/CICS and the reply message must be reconverted into XML.
The problem is that the request message body is empty when it arrives
at the host side. We tried to put the message directly in to a local queue but we get the same problem even we set the properties like MessageSet,
MessageType etc.
below is a fragment of the code. In this way no message could be written
in the output node. If I comment every SET OutputRoot.MRM Statement the message can be written. Any ideas?
Regards
DECLARE C INTEGER;
SET C = CARDINALITY(InputRoot.*[]);
DECLARE I INTEGER;
SET I = 1;
WHILE I < C DO
SET OutputRoot.*[I] = InputRoot.*[I];
SET I=I+1;
END WHILE;
-- Geben Sie den SQL-Ausdruck unterhalb dieser Linie ein. SQL-Ausdrücke oberhalb dieser Linie werden unter Umständen erneut generiert und führen zu einem Verlust eventuell vorgenommener Änderungen.
-- Message-Set konfigurieren
SET OutputRoot.Properties.MessageDomain = 'MRM';
SET OutputRoot.Properties.MessageSet = 'DRHU9B807A001';
SET OutputRoot.Properties.MessageType = 'KDNR_VERSNR_ANFO';
SET OutputRoot.Properties.MessageFormat = 'CWF';
-- Reply-Resourcen konfigurieren
SET OutputRoot.MQMD.ReplyToQ = 'CC.SF0100WBINFO1.REPLY.MQSI.IN ';
SET OutputRoot.MQMD.ReplyToQMgr = 'XVT50013 ';
SET OutputRoot.MQMD.Format = 'MQSTR ';
SET OutputRoot."MRM"."CC_HEADER"."MAGIG" = InputBody."REQUEST"."CC_HEADER"."CCMagic";
SET OutputRoot.MRM."CC_HEADER"."VERSION" = InputBody."REQUEST"."CC_HEADER"."CCHeaderversion";
SET OutputRoot.MRM."CC_HEADER"."ANZ_AUFTR_TEILE_ANFO" = InputBody."REQUEST"."CC_HEADER"."AnzahlAuftragsteile";
Usually if your message consists of an empty MRM after it came out of the RCD node, that means your RCD node does not parses your message correctly.
I agree with gaussspg to put a trace node before and after your RCD node. Then you can compare your message just before it goes into the RCD node with the message as defined in your message set.
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