i need to get "ineedthis" value from field
REQUEST_INFO:
...
<s:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Header>
<X-dynaTrace xmlns="http://ns.dynatrace.com/wcf" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">FW3;-1003312095;1;-56375709;115092;0;975784079;78</X-dynaTrace>
</s:Header>
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<storeContract xmlns="xxx/integration">
<storeRequest>
<contract>
<contractSeries>ineedthis</contractSeries>
select extractvalue(XMLType(sap.REQUEST_INFO),'s/s/storeContract/storeRequest/contract/contractSeries')
from sap
cant get the value
You're trying to extract the path
but your SOAP response doesn't have any nodes called
s; it has nodes called Envelope, Header and Body in the namespaces. So you potentially want the path:which on its own gets an
LPX-00601: Invalid tokenerror because it doesn't know whats:is. You can supply the namespaces with the third argument:or the lazy way is to wildcard the namespace and only identify the final node you want:
But
extractvaueis deprecated so it's better to use XMLQuery - still being lazy:or with explicit namespaces:
db<>fiddle