Parsing SOAP XML in Oracle
Posted
by user258587
on Stack Overflow
See other posts from Stack Overflow
or by user258587
Published on 2010-03-05T00:18:46Z
Indexed on
2010/05/03
5:58 UTC
Read the original article
Hit count: 442
Hi
I am new to Oracle and I am working on something that needs to parse a SOAP request and save the address to DB Tables. I am using the XML parser in Oracle (XMLType) with XPath but am struggling since I can't figure out the way to parse the SOAP request because it has multiple namespaces.
Could anyone give me an example?
Thanks in advance!!!
edit
It would be a typical SOAP request similar to the one below.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:soap="http://soap.service.****.com">
<soapenv:Header />
<soapenv:Body>
<soap:UpdateElem>
<soap:request>
<soap:att1>123456789</soap:att1>
<soap:att2 xsi:nil="true"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" />
<soap:att3>L</soap:att3>
.....
</soap:request>
</soap:UpdateElem>
</soapenv:Body>
</soapenv:Envelope>
I need to retrieve parameters att1, att2... and save them in to a DB table.
© Stack Overflow or respective owner