Posted: Wed Aug 03, 2016 12:48 am Post subject: Get Namespace alias dynamically in ESQL
Newbie
Joined: 26 Jan 2013 Posts: 7
Hi Team,
I have a WSDL in which some operations have a Base Type as input parameter. This same Base Type has many derived types defined within same XSD/WSDL. So consumer of this wsdl can pass derived in same operation.
To represent this in an xml/soap message we have to use xsi:type as attribute with the element tag and set the respective type referred with its namespace.
Now the issue we are facing in ESQL is Namespace alias gets changed at run-time and i am unable to set xsi:type with correct NS alias reference.
SET OutputRoot.SOAP.Body.ns:Get.ns:request.(XMLNSC.Attribute)xsi:type = 'ns1:DerivedRequest';
SET OutputRoot.SOAP.Body.ns:Get.ns:request.ns1:EndDate = CURRENT_TIMESTAMP;
ns1 is getting changed to NS2 at runtime. That is breaking the xml because xsi:type is hardcoded.
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