to generate the output XML i mapped the attributes in the following manner
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.
/************************************************************************************************************
Purpose: Transforms FN Response XML to HELOS Response XML
************************************************************************************************************/
CREATE FIELD OutputRoot.XML."SOAP-Env:Envelope";
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: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)"xsi:schemaLocation" = InputRoot.XML."SOAP-Env:Envelope".(XML.Attribute)"xmlns:schemaLocation";
--Map Output Headers to Input Headers
CREATE FIELD OutputRoot.XML."SOAP-Env:Envelope"."SOAP-Env:Body"."dqrqfn:DocumentQryRsMsg"."HdrRsRmmMsgGrp" FROM InputRoot.XML."SOAP-Env:Envelope"."SOAP-Env:Body"."dqrq:DocumentQryRsMsg"."HdrRsRmmMsgGrp";
But it doesnt work.
I think the problem is when i map dqrqfn: to dqrq which i shouldnt
Could somebody please tell me how to create that particular namespace in output and map the rest from input
Thanks in Advance
I think the problem is either that you are trying to use 2.1 with namespaces - which is poorly supported at best, or you are using the XML domain when you should obviously be using XMLNS (XML with NameSpaces). _________________ I am *not* the model of the modern major general.
Posted: Wed Sep 07, 2005 10:28 am Post subject: worked before
Apprentice
Joined: 24 Aug 2005 Posts: 30
Hi
When its the same namespace both in input and output I am able to generate it without using XMLNS
But now since its dqrqfn on one side and dqrq on other it doesnt seem working.
Could you please tell me how to create that namespace in output? Regards
Sweety
DECLARE Pointer REFERENCE TO OutputRoot.XML."SOAP-Env:Envelope";
CREATE FIRSTCHILD of Pointer TYPE 0x07000012 NAMESPACE 'xmlns' NAME 'dqrqfn' VALUE 'http://xmlcoe.jpmorganchase.com/CHF/DocumentQueryRequest';
There is a peculiar problem here that it takes hrs for the message to get from i/p to o/p queue so I m not sure if it works yet.
The documentation I found was very confusing but this is what i could infer from it.
It would be very helpful for me if you could provide me the links describing such transformations. I tried using MQSI Help but didnt help much.
Reagrds
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