Posted: Sun Sep 11, 2005 6:13 am Post subject: Urgent not creating fields
Apprentice
Joined: 24 Aug 2005 Posts: 30
HI
I wrote the follwing code in my compute node
Code:
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;
-- Enter SQL below this line. SQL above this line might be regenerated, causing any modifications to be lost.
--map declarations
SET OutputRoot.XML.(XML.XmlDecl) = InputRoot.XML.(XML.XmlDecl);
CREATE FIELD OutputRoot.XML."SOAP-Env:Envelope";
--assign namespaces and other attributes
SET OutputRoot.XML."SOAP-Env:Envelope".(XML.Attribute)"xmlns:dqrqfn" = InputRoot.XML."SOAP-Env:Envelope".(XML.Attribute)"xmlns:dqrq";
SET OutputRoot.XML."SOAP-Env:Envelope".(XML.Attribute)"xmlns:hrq" = InputRoot.XML."SOAP-Env:Envelope".(XML.Attribute)"xmlns:hrq";
SET OutputRoot.XML."SOAP-Env:Envelope".(XML.Attribute)"xmlns:jpmc" = InputRoot.XML."SOAP-Env:Envelope".(XML.Attribute)"xmlns:jpmc";
SET OutputRoot.XML."SOAP-Env:Envelope".(XML.Attribute)"xmlns:SOAP-Env" = InputRoot.XML."SOAP-Env:Envelope".(XML.Attribute)"xmlns:SOAP-Env";
SET OutputRoot.XML."SOAP-Env:Envelope".(XML.Attribute)"xmlns:xsi" = InputRoot.XML."SOAP-Env:Envelope".(XML.Attribute)"xmlns:xsi";
SET OutputRoot.XML."SOAP-Env:Envelope".(XML.Attribute)"xmlns:schemaLocation" = InputRoot.XML."SOAP-Env:Envelope".(XML.Attribute)"xmlns:schemaLocation";
--map input header to output header
CREATE FIELD OutputRoot.XML."SOAP-Env:Envelope"."SOAP-Env:Body"."dqrqfn:DocumentQryRqMsg"."hrq:HdrOrigRqRmmMsgGrp" FROM InputRoot.XML."SOAP-Env:Envelope"."SOAP-Env:Body"."dqrq:DocumentQryRqMsg"."hrq:HdrOrigRqRmmMsgGrp";
-- FIELD OutputRoot.XML."SOAP:Env:Envelope"."SOAP-Env:Body"."dqrqfn:DocumentQryRqMsg"."dqrqfn:DocumentQryRes";
/*--(XML.Content) = FIELDVALUE(InputRoot.XML."SOAP-Env:Envelope"."SOAP-Env:Body"."dqrq:DocumentQryRqMsg"."dqrq:DocumentQryRes"."IMAGE"."ORIGINAL_LOAN".(XML.Attribute)LoanOriginationSystemLoanIdentifier);*/
The problem is when i comment the fileds as shown the message is tranformed. The headers are mapped as specified.But even if I add a simple create statement beyond that the message is put to deadletter queue of the broker QM ie sending QM.
I am also pasting the input message
Could someone tell me why this is happening.Even if I connect the failure terminals of input node and compute node to an error queue ,it still puts the message in dead letter queue of broker QM.
Regards
Sweety
Posted: Sun Sep 11, 2005 6:31 am Post subject: tried solving
Apprentice
Joined: 24 Aug 2005 Posts: 30
HI
I tried doing some error solving and I find that whatever i do before the line
Code:
CREATE FIELD OutputRoot.XML."SOAP-Env:Envelope"."SOAP-Env:Body"."dqrqfn:DocumentQryRqMsg"."hrq:HdrOrigRqRmmMsgGrp" FROM InputRoot.XML."SOAP-Env:Envelope"."SOAP-Env:Body"."dqrq:DocumentQryRqMsg"."hrq:HdrOrigRqRmmMsgGrp";
Is being done.
But anything written after that line is not being done.
Could someone help me figure out why
Regards
Sweety
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