Forum Discussion
tpowers
15 years agoOccasional Contributor
Well; I think my issue is with the declaration of a default namespace, rather than a prefix for each individual tag.
http://www.w3schools.com/XML/xml_namespaces.asp
scroll down to default namespaces
Again, a sample below of the request being read in...
Can holder.getNodeValue work here without a ns prefix???
It seems strange that it wouldn't just pick it up. I can see the entire request when write out the xmlObject to the log.
I have already tried to include the 'path' (wrong term I know) within the xml such as...
...and every combination of the proceeding I can find, but still not able to read in node value(s).
I also have tried declaring the default ns in the script it in various ways but I am just guessing because I have not seen any examples without a prefix. But that didn't seem logical anyway because i wasn't using any prefixes, which I think is the point when declaring in the script.
Is this a bug?
Thanks again.
-Tim
http://www.w3schools.com/XML/xml_namespaces.asp
scroll down to default namespaces
Again, a sample below of the request being read in...
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:s="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Body>
<RunScript xmlns="http://tempuri.org/">
<optionObject>
<EntityID>5</EntityID>
<Facility>98</Facility>
<Forms>
<FormObject.... //more
</Forms>
</RunScript>
Can holder.getNodeValue work here without a ns prefix???
It seems strange that it wouldn't just pick it up. I can see the entire request when write out the xmlObject to the log.
I have already tried to include the 'path' (wrong term I know) within the xml such as...
context.EntityID = holder.getNodeValue( "//RunScript/optionObject/EntityID")
...and every combination of the proceeding I can find, but still not able to read in node value(s).
I also have tried declaring the default ns in the script it in various ways but I am just guessing because I have not seen any examples without a prefix. But that didn't seem logical anyway because i wasn't using any prefixes, which I think is the point when declaring in the script.
Is this a bug?
Thanks again.
-Tim
Related Content
Recent Discussions
- 6 days agoruchisingh