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-06512: at "SYS.UTL_HTTP" ORA-29259: end-of-input reached on UTL_HTTP.GET_RESPONSE

Abbas QureshiNov 26 2014 — edited Dec 4 2014

Hi all,

I am calling WebServices using UTL_HTTP and SOAP_API, In similar way mentioned below,

        CREATE OR REPLACE FUNCTION add_numbers (p_int_1 IN NUMBER, p_int_2 IN NUMBER)

          RETURN NUMBER

        AS

          l_request soap_api.t_request;

          l_response soap_api.t_response;

          l_return VARCHAR2(32767);

          l_url VARCHAR2(32767);

          l_namespace VARCHAR2(32767);

          l_method VARCHAR2(32767);

          l_soap_action VARCHAR2(32767);

          l_result_name VARCHAR2(32767);

        BEGIN

          l_url := 'http://oracle-base.com/webservices/server.php';

          l_namespace := 'xmlns="http://oracle-base.com/webservices/"';

          l_method := 'ws_add';

          l_soap_action := 'http://oracle-base.com/webservices/server.php/ws_add';

          l_result_name := 'return';

          l_request := soap_api.new_request(p_method => l_method,

          p_namespace => l_namespace);

          soap_api.add_parameter(p_request => l_request,

          p_name => 'int1',

          p_type => 'xsd:integer',

          p_value => p_int_1);

          soap_api.add_parameter(p_request => l_request,

          p_name => 'int2',

          p_type => 'xsd:integer',

          p_value => p_int_2);

          l_response := soap_api.invoke(p_request => l_request,

          p_url => l_url,

          p_action => l_soap_action);

          l_return := soap_api.get_return_value(p_response => l_response,

          p_name => l_result_name,

          p_namespace => NULL);

          RETURN l_return;

        END;

It works fine when the number of records are less (the output XML is small), but when the number of records in source database is increased then I am not able to get output XML.

I am getting error,

error code: -29273 , error msg : ORA-29273: HTTP request failed

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

ORA-29259: end-of-input reached

I am gettting error at line,

L_HTTP_RESPONSE := UTL_HTTP.GET_RESPONSE(L_HTTP_REQUEST);

Can anybody help me with this issue ? Is there any way to increase the HTTP_RESPONSE size ?

Thanks,

Abbas Qureshi

This post has been answered by WGabriel on Nov 28 2014
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 1 2015
Added on Nov 26 2014
8 comments
6,714 views