【发布时间】:2020-03-26 22:34:27
【问题描述】:
如何从下面的 xml 结果中提取标签 VertexApplicationException 和 User login failed. 的值?
在我的包中,我正在使用“make request api”调用来获取从顶点计算的税值,有时我会收到错误作为我的 api 调用的响应,现在我需要将响应存储在表中,但只有我需要错误消息例如:VertexApplicationException 和用户登录失败。从下面给出的 xml 响应标签
<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">
<S:Body>
<nsf:Fault xmlns:nsf="http://schemas.xmlsoap.org/soap/envelope/">
<faultcode>nsf:Client</faultcode>
<faultstring>User login failed.</faultstring>
<detail>
<ns:VertexException xmlns:ns="urn:vertexinc:oseries:exception:1:0">
<ns:exceptionType>VertexApplicationException</ns:exceptionType>
<ns:rootCause>User login failed.</ns:rootCause>
</ns:VertexException>
</detail>`enter code here`
</nsf:Fault>
</S:Body>
</S:Envelope>
【问题讨论】:
-
您确定这是一个 Oracle APEX 问题吗?这里的上下文是什么?
-
是的,在我的包中,我使用 make request api 调用来获取从顶点计算的税值,有时我收到错误作为我的 api 调用的响应,现在我需要将响应存储在表中但是只有错误消息例如:VertexApplicationException 和用户登录失败。从上面给定的 xml 响应标签
标签: api oracle11g oracle-apex apex-code oracle-apex-5.1