Hi
When using the XPath in the callOperation below, my data array returns as empty although the update was successful. Using the selectNodes() call in the second snippet, specifying the namespace and the same XPath, I get the data I expect.
It seems that the failure to get a populated data array in snippet #1 is because of the lack of namespace in the XPath but, I can’t see how I can actually specify the namespace to the callOperation method. Can you suggest how this might be achieved? Thanks.
ws.callOperation("Update",
structure,
"//StandData/OriginalStand",
function (data, xmlDoc, rpcResponse, wsRequest) {
window.myDoc = xmlDoc;
},
{ useHttpProxy: true}
);
isc.XMLTools.selectNodes(window.myDoc, "//sms:StandData/sms:OriginalStand", { sms: "urn:sms.stand"})