I can not parse the XML file. The request returns nothing:
with x as (select XMLTYPE( '<?xml version="1.0" encoding="UTF-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Header><CigWsHeader xmlns="http://ws.info.com/"> <Culture>ru-RU</Culture> <Password>Vfylfh12354</Password> <SecurityToken /><UserId>0</UserId> <UserName>CNTuser03</UserName> <Version>1_0</Version></CigWsHeader> </soap:Header><soap:Body> <GetReportResponse xmlns="http://ws.info.com/"> <GetReportResult><CigResult Version="3.0.1" xmlns=""> <DateTime>23.12.2017 15:49:18</DateTime> <ReferenceId>10</ReferenceId> <ServiceName>Front Office WS</ServiceName> <ResultCulture>ru-RU</ResultCulture> <ResultCode>10</ResultCode><ResultDescription /> <UsageIdentity /><Result><Root><Title name="tblTitle" title="Report" intitle="Report subject" /> <Header name="tblHeader" EntityType="Individual" title="Extended" ReportCode="Report.ReportName.Advanced" intitle="Subject"> <RegistrationID title="Reg id" value="1984725" /> <DateOfBirth title="Date of birth" value="26.02.1988" /> <Gender title="Gender" value="Male" /> <Name title="Name" value="JOHN" /> <Surname title="Surname" value="SMITH" /> <CityOfBirth title="City of birth" value="New York" /> <Education title="Edu" id="123" value="Master" /> <MatrialStatus title="Marital st." id="45" value="Single" /> <RegionOfBirth title="Region" value="NY" /> <CountryOfBirth title="Country" value="USA" /></Header> </Root></Result></CigResult></GetReportResult></GetReportResponse></soap:Body></soap:Envelope>') as xml from dual) SELECT y.* FROM x, XMLTABLE(xmlnamespaces('http://www.w3.org/2001/XMLSchema' as "xsd", 'http://www.w3.org/2001/XMLSchema-instance' as "xsi", 'http://schemas.xmlsoap.org/soap/envelope/' as "soap"), '/soap:Envelope/soap:Body/GetReportResponse/GetReportResult/CigResult/Result/Root/Header/RegistrationID' PASSING x.xml COLUMNS val VARCHAR2(255) PATH 'RegistrationID') y ;
columnsno type. And thepathlooks weird, where is yourreturn? - 0xdb