Posted: Sat May 08, 2010 11:06 am Post subject: Cretae XML message using schema ESQL Procedure(Reference)
Centurion
Joined: 04 Oct 2008 Posts: 147 Location: US
Below is my code:
Code:
CREATE COMPUTE MODULE HeaderReference_Compute
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
DECLARE rOutRefXML REFERENCE TO OutputRoot.XMLNSC.TCRMService;
DECLARE rInRefMRM REFERENCE TO InputRoot.MRM;
CALL CreateTransactionHeader(rInRefMRM, rOutRefXML);
RETURN TRUE;
END;
CREATE PROCEDURE CopyEntireMessage() BEGIN
SET OutputRoot = InputRoot;
END;
END MODULE;
CREATE PROCEDURE CreateTransactionHeader(IN rInRefMRM REFERENCE,INOUT rOutRefXML REFERENCE) BEGIN
SET rOutRefXML.RequestControl.DWLControl.requesterTime = CAST(CURRENT_TIMESTAMP AS CHAR);
END;
I am getting output message with no content in it. Please guide.[/code] _________________ Regards
Paul
Posted: Sat May 08, 2010 12:16 pm Post subject: Re: Create XML message using schema ESQL Procedure ...
Grand Master
Joined: 25 Jun 2008 Posts: 1415
deepak_paul wrote:
Code:
CREATE COMPUTE MODULE HeaderReference_Compute
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
DECLARE rOutRefXML REFERENCE TO OutputRoot.XMLNSC.TCRMService;
OutputRoot is empty, here.
rOutRefXML does not refer to an existing element.
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