DBA Data[Home] [Help]

APPS.IBY_NETUTILS_PVT dependencies on UTL_HTTP

Line 21: UTL_HTTP.set_proxy(l_proxy,l_noproxy);

17: IF (NOT (TRIM(l_proxy) IS NULL)) THEN
18: iby_utility_pvt.get_property(G_PROFILE_NO_PROXY,l_noproxy);
19: l_noproxy := TRIM(l_noproxy);
20:
21: UTL_HTTP.set_proxy(l_proxy,l_noproxy);
22: END IF;
23: END set_proxy;
24:
25: --

Line 555: l_httpreq UTL_HTTP.Req;

551: l_url VARCHAR2(1000);
552: l_walletpath VARCHAR2(1000);
553: l_line VARCHAR2(4000);
554:
555: l_httpreq UTL_HTTP.Req;
556: l_httpresp UTL_HTTP.Resp;
557: l_sent_req BOOLEAN := false;
558: l_got_resp BOOLEAN := false;
559:

Line 556: l_httpresp UTL_HTTP.Resp;

552: l_walletpath VARCHAR2(1000);
553: l_line VARCHAR2(4000);
554:
555: l_httpreq UTL_HTTP.Req;
556: l_httpresp UTL_HTTP.Resp;
557: l_sent_req BOOLEAN := false;
558: l_got_resp BOOLEAN := false;
559:
560: l_postbody VARCHAR2(30000);

Line 573: utl_http.set_wallet(l_walletpath,NULL);

569:
570: iby_utility_pvt.get_property
571: (iby_security_pkg.C_SHARED_WALLET_LOC_PROP_NAME,l_walletpath);
572: l_walletpath := iby_netutils_pvt.path_to_url(l_walletpath);
573: utl_http.set_wallet(l_walletpath,NULL);
574: END IF;
575: set_proxy(p_url);
576:
577: iby_debug_pub.add('starting req',iby_debug_pub.G_LEVEL_INFO,l_dbg_mod);

Line 583: l_httpreq := utl_http.begin_request(p_url,'POST',null);

579: -- pass the session_id to the ECServlet to create a more meaninful
580: -- WebAppsContext
581: l_postbody := p_postbody||'&' || 'pSessionId=' || icx_sec.g_session_id;
582:
583: l_httpreq := utl_http.begin_request(p_url,'POST',null);
584:
585: iby_debug_pub.add('set headers',iby_debug_pub.G_LEVEL_INFO,l_dbg_mod);
586: utl_http.set_header(l_httpreq,'Accept','text/plain');
587: utl_http.set_header(l_httpreq,'Content-type',

Line 586: utl_http.set_header(l_httpreq,'Accept','text/plain');

582:
583: l_httpreq := utl_http.begin_request(p_url,'POST',null);
584:
585: iby_debug_pub.add('set headers',iby_debug_pub.G_LEVEL_INFO,l_dbg_mod);
586: utl_http.set_header(l_httpreq,'Accept','text/plain');
587: utl_http.set_header(l_httpreq,'Content-type',
588: 'application/x-www-form-urlencoded');
589: utl_http.set_header(l_httpreq,'Content-length',
590: TO_CHAR(length(l_postbody)));

Line 587: utl_http.set_header(l_httpreq,'Content-type',

583: l_httpreq := utl_http.begin_request(p_url,'POST',null);
584:
585: iby_debug_pub.add('set headers',iby_debug_pub.G_LEVEL_INFO,l_dbg_mod);
586: utl_http.set_header(l_httpreq,'Accept','text/plain');
587: utl_http.set_header(l_httpreq,'Content-type',
588: 'application/x-www-form-urlencoded');
589: utl_http.set_header(l_httpreq,'Content-length',
590: TO_CHAR(length(l_postbody)));
591:

Line 589: utl_http.set_header(l_httpreq,'Content-length',

585: iby_debug_pub.add('set headers',iby_debug_pub.G_LEVEL_INFO,l_dbg_mod);
586: utl_http.set_header(l_httpreq,'Accept','text/plain');
587: utl_http.set_header(l_httpreq,'Content-type',
588: 'application/x-www-form-urlencoded');
589: utl_http.set_header(l_httpreq,'Content-length',
590: TO_CHAR(length(l_postbody)));
591:
592:
593: iby_debug_pub.add('writing body',iby_debug_pub.G_LEVEL_INFO,l_dbg_mod);

Line 595: utl_http.write_line(l_httpreq,l_postbody);

591:
592:
593: iby_debug_pub.add('writing body',iby_debug_pub.G_LEVEL_INFO,l_dbg_mod);
594:
595: utl_http.write_line(l_httpreq,l_postbody);
596: l_sent_req := true;
597: iby_debug_pub.add('reading resp',iby_debug_pub.G_LEVEL_INFO,l_dbg_mod);
598:
599: l_httpresp := UTL_HTTP.get_response(l_httpreq);

Line 599: l_httpresp := UTL_HTTP.get_response(l_httpreq);

595: utl_http.write_line(l_httpreq,l_postbody);
596: l_sent_req := true;
597: iby_debug_pub.add('reading resp',iby_debug_pub.G_LEVEL_INFO,l_dbg_mod);
598:
599: l_httpresp := UTL_HTTP.get_response(l_httpreq);
600: l_got_resp :=true;
601: iby_debug_pub.add('resp status code:=' || l_httpresp.status_code,
602: iby_debug_pub.G_LEVEL_ERROR,l_dbg_mod);
603:

Line 606: utl_http.read_text(l_httpresp,l_line,4000);

602: iby_debug_pub.G_LEVEL_ERROR,l_dbg_mod);
603:
604: BEGIN
605: LOOP
606: utl_http.read_text(l_httpresp,l_line,4000);
607: x_htmldoc := x_htmldoc || l_line;
608: END LOOP;
609: EXCEPTION
610: WHEN utl_http.end_of_body THEN

Line 610: WHEN utl_http.end_of_body THEN

606: utl_http.read_text(l_httpresp,l_line,4000);
607: x_htmldoc := x_htmldoc || l_line;
608: END LOOP;
609: EXCEPTION
610: WHEN utl_http.end_of_body THEN
611: NULL; -- end of input
612: END;
613:
614: UTL_HTTP.end_response(l_httpresp);

Line 614: UTL_HTTP.end_response(l_httpresp);

610: WHEN utl_http.end_of_body THEN
611: NULL; -- end of input
612: END;
613:
614: UTL_HTTP.end_response(l_httpresp);
615:
616: iby_debug_pub.add('Exit',iby_debug_pub.G_LEVEL_PROCEDURE,l_dbg_mod);
617: EXCEPTION
618: WHEN OTHERS THEN

Line 619: iby_debug_pub.add('err code=' || utl_http.get_detailed_sqlcode,

615:
616: iby_debug_pub.add('Exit',iby_debug_pub.G_LEVEL_PROCEDURE,l_dbg_mod);
617: EXCEPTION
618: WHEN OTHERS THEN
619: iby_debug_pub.add('err code=' || utl_http.get_detailed_sqlcode,
620: iby_debug_pub.G_LEVEL_ERROR,l_dbg_mod);
621: iby_debug_pub.add('err msg=' || SUBSTR(utl_http.get_detailed_sqlerrm,1,150),
622: iby_debug_pub.G_LEVEL_ERROR,l_dbg_mod);
623:

Line 621: iby_debug_pub.add('err msg=' || SUBSTR(utl_http.get_detailed_sqlerrm,1,150),

617: EXCEPTION
618: WHEN OTHERS THEN
619: iby_debug_pub.add('err code=' || utl_http.get_detailed_sqlcode,
620: iby_debug_pub.G_LEVEL_ERROR,l_dbg_mod);
621: iby_debug_pub.add('err msg=' || SUBSTR(utl_http.get_detailed_sqlerrm,1,150),
622: iby_debug_pub.G_LEVEL_ERROR,l_dbg_mod);
623:
624: IF (l_got_resp) THEN
625: UTL_HTTP.end_response(l_httpresp);

Line 625: UTL_HTTP.end_response(l_httpresp);

621: iby_debug_pub.add('err msg=' || SUBSTR(utl_http.get_detailed_sqlerrm,1,150),
622: iby_debug_pub.G_LEVEL_ERROR,l_dbg_mod);
623:
624: IF (l_got_resp) THEN
625: UTL_HTTP.end_response(l_httpresp);
626: iby_debug_pub.add('close resp',iby_debug_pub.G_LEVEL_ERROR,l_dbg_mod);
627: iby_debug_pub.add('resp status code:=' || l_httpresp.status_code,
628: iby_debug_pub.G_LEVEL_ERROR,l_dbg_mod);
629: ELSIF (l_sent_req) THEN

Line 630: UTL_HTTP.end_request(l_httpreq);

626: iby_debug_pub.add('close resp',iby_debug_pub.G_LEVEL_ERROR,l_dbg_mod);
627: iby_debug_pub.add('resp status code:=' || l_httpresp.status_code,
628: iby_debug_pub.G_LEVEL_ERROR,l_dbg_mod);
629: ELSIF (l_sent_req) THEN
630: UTL_HTTP.end_request(l_httpreq);
631: iby_debug_pub.add('close req',iby_debug_pub.G_LEVEL_ERROR,l_dbg_mod);
632: END IF;
633: RAISE;
634: END;