I have this code which ws working fine, but now i get too many http requests error inspite of closing the requests.
- Code: Select all
UTL_HTTP.SET_HEADER (HTTP_REQ, 'Content-Length', LENGTH (SOAP_REQUEST));
UTL_HTTP.SET_HEADER (HTTP_REQ,'SOAPAction','"http://webapi/Streets_Events_Get"');
UTL_HTTP.WRITE_TEXT (HTTP_REQ, SOAP_REQUEST);
UTL_HTTP.WRITE_TEXT (HTTP_REQ, SOAP_REQUEST);
INSERT INTO XXHCC_STAGING_XML VALUES ((XMLTYPE (SOAP_REQUEST)), SYSDATE,'Street_Events_Get SOAP Request');
COMMIT;
HTTP_RESP := UTL_HTTP.GET_RESPONSE (HTTP_REQ);
UTL_HTTP.READ_TEXT (HTTP_RESP, SOAP_RESPOND);
INSERT INTO XXHCC_STAGING_XML VALUES ((XMLTYPE (SOAP_RESPOND)), SYSDATE,'ssssss');
COMMIT;
UTL_HTTP.END_REQUEST(http_req);
UTL_HTTP.END_RESPONSE (HTTP_RESP);
My SOAP requst can be seen in my staging table and its fine, but when i run the procedure from sqlplus i get this and i dont get any response back,
My assumption is as its failing to connect, its an empty response and it fails in sql plus with xml parsing error, but the exception logs the actual error.
- Code: Select all
ERROR at line 1:
ORA-30625: method dispatch on NULL SELF argument is disallowed
ORA-06512: at line 5
and in my Error log which logs the exceptino i get
- Code: Select all
ORA-29273: HTTP request failed
ORA-06512: at "SYS.UTL_HTTP", line 1222
ORA-29270: too many open HTTP requests
I dont know what else to put to close the http requests, or is there a parameter in oracle to set the no.of http requests.
My environment is
Oracle9i Enterprise Edition Release 9.2.0.6.0 - 64bit Production
PL/SQL Release 9.2.0.6.0 - Production
Thanks
S