Hi, I'm tying to return 605 as an inline view using XMLTable. My table keeps coming back as "-", and not with 605. Anybody know why this is? Thank you!
with
t as (
select XMLType(
'<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>
<AddIntegerResponse xmlns="http://tempuri.org">
<AddIntegerResult>605</AddIntegerResult>
</AddIntegerResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>') xml_data
from dual
)
select xmlresponse.*
from t
, XMLTable(
XMLNamespaces(
'http://schemas.xmlsoap.org/soap/envelope/' as "SOAP-ENV",
'http://tempuri.org' as "ds"),
'/SOAP-ENV:Envelope/SOAP-ENV:Body/ds:AddIntegerResponse/ds:AddIntegerResult'
passing xml_data
columns
RESULT VARCHAR2(100) path 'ds:AddIntegerResult'
) xmlresponse;