我使用PL / SQL块调用基于SOAP的Web服务。返回的响应采用以下格式:
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope">
<env:Header/>
<env:Body>
<ns0:getDocumentDataResponse xmlns:ns0="http://xmlns.oracle.com/oxp/service/ScheduleReportService">
<ns3:getDocumentData ="http://xmlns.oracle.com/oxp/service/ScheduleReportService">JVBERi0xLjYNCjUgMCB vYmoNCjw8DQovVHlwZSAvWE9iamVjdA0KL1N1YnR5cGUgL0ltYWdlDQov
RmlsdGVyIC9GbGF0ZURlY29kZQ0KL0xlbmd0aCA1MzUNCi9XaWR0aCA5Mg0KL0hlaWdodCAxNQ0K
L0JpdHNQZXJDb21wb25lbnQgOA0KL0NvbG9yU3BhY2UgL0RldmljZVJHQg0KPj4NCnN0cmVhbQ0K
eJztVzuOAjEM5U65yJwip6DgGnOhrai5AhLNLh0SRfZ5nDiexPFktS1PFgqMYz//kiGlD47xeDzS
9WoKPdJ4/4w0s/g40nm9Xo5xeUqLGbhsszWT5LKkU0inky0hpBjrXixGmqI/ivp8yTqmAvivK20f
WT5fqECOBYXn80nuHGvwxe4aU/hRx2JKE6nkxNfvOetkhkCcFahkVJqxZTx9/9CuiZxQ6jTzXmLM
....
OWExMDllPjxhMWE2NTE2ZDNmYTcwY2Y2NzhkY2EwMWIzZjlhMTA5ZT5dDQo+Pg0Kc3RhcnR4cmVm
DQoxMDg0MTIwDQolJUVPRg0K</ns3:getDocumentData>
</ns0:getDocumentDataResponse>
</env:Body>
</env:Envelope>
此响应存储在变量:l_xml_response_text(varchar2)中,当我执行以下代码时:
l_xml_response_xmltype := xmltype(l_xml_response_text);
它正在抛出错误:
异常ORA-31011:XML解析失败
ORA-19202:XML处理发生错误
LPX-00007:遇到意外的文件结尾
问题是由于数据以解码格式返回吗?如果是的话......可以这样处理吗?