SET OutputRoot.XMLNSC.soapenv:Envelope.(XMLNSC.NamespaceDecl)"xmlns" = ns2;
SET OutputRoot.XMLNSC.soapenv:Envelope.(XMLNSC.NamespaceDecl)"xmlns:xsi" = ns3;
SET OutputRoot.XMLNSC.soapenv:Envelope.soapenv:Header.soapenv:authentication.soapenv:userid = '8072';
SET OutputRoot.XMLNSC.soapenv:Envelope.soapenv:Header.soapenv:authentication.soapenv:password = 'F5s0sE9';
SET OutputRoot.XMLNSC.soapenv:Envelope.soapenv:Body.soapenv:OTA_HotelSearchRQ.soapenv:Criteria.
soapenv:Criterion.soapenv:Profiles.soapenv:ProfileInfo.soapenv:Profile.(XMLNSC.Attribute)LastModifyDateTime = '1900-01-01T09:30:47.0Z';
Problem here is Every element has NS1 namespace in it, which should not be the case. So what we do to remove that is, From the above ESQL we will take of the Namespace decln for that particular part of msg construction.
Something like this,
SET OutputRoot.XMLNSC.soapenv:Envelope.soapenv:Header.authentication.userid = '8072';
SET OutputRoot.XMLNSC.soapenv:Envelope.soapenv:Header.authentication.password = 'F5s0sE9';
SET OutputRoot.XMLNSC.soapenv:Envelope.soapenv:Body.OTA_HotelSearchRQ.Criteria.Criterion.Profiles.ProfileInfo.Profile.(XMLNSC.Attribute)LastModifyDateTime = '1900-01-01T09:30:47.0Z';
But this is a Incorrect way of Creating XML according to WMB. Which throws the error saying “XML Writing errors have occured”!!
Example 3 : Example of incorrect usage
DECLARE space1 NAMESPACE 'namespace1';
SET OutputRoot.XMLNSC.root.(XMLNSC.NamespaceDecl)xmlns = space1;
SET OutputRoot.XMLNSC.root.example = 'ABCDE';
...according to WMB. Which throws the error saying “XML Writing errors have occured”!!
Please can you post the rest of the error message. You should be able to find it in the Windows Event Viewer. If you cannot find it there, please take a user trace.
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