Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ORA-29270: too many open HTTP requests APEX_WEB_SERVICES

FaadiMay 10 2020 — edited May 22 2020

I read almost all threads on this forum related to this error ORA-29270 but did not get answers for below questions

  1. How to check active HTTP connection in oracle database?
  2. How to interrupt HTTP connection if they exceed the limits?
  3. How many HTTP connections are allowed per sessions while making APEX_WEB_SERVICE.MAKE_REQUEST?
  4. I have tried following exceptions in the code but didn't work. because i am not sure how to handle below exception for this call APEX_WEB_SERVICE.MAKE_REQUEST.
    • Exception

when utl_http.too_many_requests thenutl_http.end_response(l_result);

    • This below was advised by Oracle to use but when i pass my as below then get the following error

        UTL_HTTP.DESTROY_REQUEST_CONTEXT(l_result);

ORA-06550: line 55, column 42:

PLS-00363: expression 'l_result' cannot be used as an assignment target

ORA-06550: line 55, column 9:

PL/SQL: Statement ignored

Following is the error and code.

ERROR

ORA-29273: HTTP request failed

ORA-06512: at "APEX_200100.WWV_FLOW_WEB_SERVICES", line 1745

ORA-06512: at "APEX_200100.WWV_FLOW_WEB_SERVICES", line 924

ORA-29270: too many open HTTP requests

ORA-06512: at "SYS.UTL_HTTP", line 380

ORA-06512: at "SYS.UTL_HTTP", line 1148

ORA-06512: at "APEX_200100.WWV_FLOW_WEB_SERVICES", line 902

ORA-06512: at "APEX_200100.WWV_FLOW_WEB_SERVICES", line 1640

ORA-06512: at "APEX_200100.WWV_FLOW_WEB_SERVICES", line 1767

ORA-06512: at "APEX_200100.WWV_FLOW_WEBSERVICES_API", line 196

ORA-06512: at line 19

  1. DECLARE 
  2. l_envelope CLOB; 
  3. l_xml XMLTYPE; 
  4. l_result VARCHAR2 (32767); 
  5. p_login VARCHAR2 (100) := 'XXXX'; 
  6. p_pass     VARCHAR2 (100) := 'XXXX'; 
  7. BEGIN 
  8. l_envelope := 
  9. '<?xml version="1.0" encoding="UTF-8"?> 
  10. <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.eClaimLink.ae/"
  11. <SOAP-ENV:Body> 
  12. <ns1:GetNewTransactions> 
  13. <ns1:login>'||p_login|| '</ns1:login> 
  14. <ns1:pwd>'|| p_pass || '</ns1:pwd> 
  15. </ns1:GetNewTransactions> 
  16. </SOAP-ENV:Body> 
  17. </SOAP-ENV:Envelope> 
  18. '; 
  19. l_xml := APEX_WEB_SERVICE.make_request 
  20.                                      ( 
  21.                                         p_url           => 'https://xxxx.ae/ValidateTransactions.asmx?WSDL  ', 
  22.                                         p_action        => 'http://www.xxxx.ae/GetNewTransactions   ', 
  23.                                         p_envelope      => l_envelope, 
  24.                                         p_wallet_path   => 'file:D:\app\wallet', 
  25.                                         p_wallet_pwd    => 'xxxx$xxx' 
  26.                                      ); 
  27. l_result := APEX_WEB_SERVICE.parse_xml (       p_xml     => l_xml 
  28.                                              , p_xpath   => '//text()' 
  29.                                              , p_ns      =>  'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
  30.                                                               xmlns:xsd="http://www.w3.org/2001/XMLSchema
  31.                                                               xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"' 
  32.                                         ); 
  33. DBMS_OUTPUT.put_line ('l_xml=' || l_xml.getClobVal ()); 
  34. DBMS_OUTPUT.put_line ('l_result =' || l_result); 
  35. END; 

***Moderator action (Timo): removed private information.***

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 5 2023
Added on May 10 2020
9 comments
2,321 views