Posted: Mon Jun 30, 2008 8:27 am Post subject: MRM TDS empty message out?
Chevalier
Joined: 17 Jan 2006 Posts: 475
Hi All
I have a MRM def setup and am trying to populate it from an incoming XML
i can see the MRM tree before it goes to the output Q but once it gets there the message itself is empty
what am i doing wrong?
Code:
REATE LASTCHILD OF OutputRoot DOMAIN ('MRM');
SET outRoot.Properties.MessageSet = 'JD4BC80002001';
SET outRoot.Properties.MessageType = 'FixedSampleMessage';--'AgreementContacts';
SET outRoot.Properties.MessageFormat = 'TDS1';
-- SET outRoot.Properties.MessageDomain = 'MRM';
DELETE FIELD OutputRoot.MQRFH;
SET outRoot.MQMD.Format = 'MQSTR';
SET outRoot.MRM.Data1 = svcAgr_cur.ns1:BilltoAccountId;
SET outRoot.MRM.Data2 = svcAgr_cur.ns1:BilltoAccountName;
SET outRoot.MRM.Data3 = svcAgr_cur.ns1:BilltoAccount;
I have also seen such a behavior. In the debug perspective and also in the trace node after the data enrichment the message tree is built properly.
However on the output queue the data is 0 bytes.
As a rule of thumb, i create the top most element as
CREATE OutputRoot.MRM.ResultMsg AS rOut;
and then start on with the LASTCHILD and the NEXTSIBLING message building.
Joined: 12 Sep 2006 Posts: 2493 Location: Boston, US
this is due to the reference is not working properly.
Use OutputRoot with out any reference.
like below
SET OutputRoot.Properties.MessageSet = 'JD4BC80002001';
or create a last child and go on creating NEXTSIBLING also sounds good _________________ Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
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