my code is like this
- Code: Select all
INSERT INTO XXHCC_STAGING_XML VALUES ((XMLTYPE (SOAP_REQUEST)), SYSDATE,'Street_Events_GetLOB SOAP Request');
COMMIT;
dbms_lob.createtemporary(soap_respond, true);
HTTP_RESP := UTL_HTTP.GET_RESPONSE (HTTP_REQ);
while not(eob)
loop
begin
UTL_HTTP.READ_TEXT (HTTP_RESP, buffer, 32767);
if buffer is not null and length(buffer)>0 then
dbms_lob.writeappend(SOAP_RESPOND, length(buffer), buffer);
end if;
exception when UTL_HTTP.END_OF_BODY then
eob := true;
end;
end loop;
UTL_HTTP.END_RESPONSE (HTTP_RESP);
SOAP_RESPOND := XMLTYPE(SOAP_RESPOND).EXTRACT('/soap:Envelope/soap:Body/Streets_Events_GetResponse/Streets_Events_GetResult/text()',
'xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/",
xmlns="http://webapi/"').GETCLOBVAL();
Xml_Result := XMLTYPE(DBMS_XMLGEN.CONVERT(SOAP_RESPOND, DBMS_XMLGEN.ENTITY_DECODE));
INSERT INTO XXHCC_STAGING_XML VALUES ( Xml_Result, sysdate,'Street_Events_GetLOB SOAP Response' );
Commit;
[code]
It works most of the time, but for one of the records i got this error and i couldnt find anything on the net, let me tell you the individual webservice works fine returning the soap response in the browser.
[code]
ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00231: invalid character 47 ('/') found in a Name or Nmtoken
Any idea what is causing this
Thanks
S