Posted: Fri Feb 11, 2005 9:07 am Post subject: how to access namespace data on the input message
Master
Joined: 16 May 2001 Posts: 255
HI,
I am receiving a message with namespaces and I can't seem to get the data from the input to the output. The output is not using namespaces. Here is a sample of the data I am receiving.
I declared the acord namespace as follows:
DECLARE acord NAMESPACE 'http://www.ACORD.org/standards/PC_Surety/ACORD1.6.0/xml/';
DECLARE soap NAMESPACE 'http://www.w3.org/2001/06/soap-envelope';
My Set statement to move the CustLoginId is as follows:
SET OutputRoot.XML.ACORD.SignonRq.SignonPswd.CustId.CustLoginId = InputBody.soap:Body.acord:ACORD.SignonRq.SignonPswd.CustId.CustLoginId;
I get nothing on the output. Can anyone tell me what I am doing wrong? Also, can someone point me to some good documentation on this stuff? Everything I find seems to be creating namespaces on the output message and very little discusses how to get it from the input message.
Thanks!
Joined: 25 Jun 2001 Posts: 52 Location: Bristol, UK
It depends what domain you are in. If MRM then you code looks reasonable. If XML or XMLNS you will need to reference the soap:Envelope tag
e.g.
Code:
SET OutputRoot.XML.ACORD.SignonRq.SignonPswd.CustId.CustLoginId = InputBody.[b]soap.Envelope.[/b]soap:Body.acord:ACORD.SignonRq.SignonPswd.CustId.CustLoginId;
I am not using MRM domain. I don't understand your answer below. Do you mean code:
SET OutputRoot.XML.ACORD.SignonRq.SignonPswd.CustId.CustLoginId = InputBody.soap:Envelope.soap:Body.acord:ACORD.SignonRq.SignonPswd.CustId.CustLoginId;
SET OutputRoot.XML.ACORD.SignonRq.SignonPswd.CustId.CustLoginId = InputBody.soap:Envelope.soap:Body.acord:ACORD.acord:SignonRq.acord:SignonPswd.acord:CustId.acord:CustLoginId;
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