![]() ![]() T_http_resp:= utl_http. Utl_http.get_transfer_timeout(t_timeout) utl_http.write_text(t_http_req, t_request_body) Utl_http.write_text ( t_http_req, t_chunkdata ) T_chunkdata := dbms_lob.substr(t_request_body, 2000, t_start) ![]() T_body_lengte := dbms_lob.getlength(t_request_body) Utl_t_header(t_http_req, 'Transfer-Encoding', 'chunked' ). Utl_t_header(t_http_req, 'Content-Length', length(t_request_body)) Utl_t_header(t_http_req, 'Content-Type', 'text/xml charset=UTF-8') Utl_t_authentication(t_http_req,r_er_webservice_bekendmakingen,r_webservice_bekendmakingen) T_http_req:= utl_http.begin_request( r_gemeente.url_webservice_bekendmakingen ![]() L_url := httpuritype.createuri(''||r_bekendmaking.id) The properties CoreConnectionPNames are part of the package. The timeout is provided in milliseconds and therefore, we multiple the value by 1000. Line 2, the retry policy condition will trigger when a TimeoutRejectedException occurs, and a retry will be performed. Here, we have setup the three parameters in the HttpClient object. Line 3, executes the timeout policy, if the http client does NOT respond with 1 second the timeout policy will throw a TimeoutRejectedExcetion. Where gmte_code = r_bekendmaking.gmte_code Line 4 makes the request to the remote service using the HttpClient. R_bekendmaking ipm40_bekendmakingen%rowtype I am using Oracle Database 10g Express Edition Release 10.2.0.1.0 with EPGĬreate or replace procedure ipm40_send_bekendmaking(p_bdmg_id in number) It looks like still the default is used?! But after 60 seconds the exception is still raised. I tried to set the timeout to 5 minutes with "utl_t_transfer_timeout(300)". When i try to get a responce i get the error: I have made a pl/sql procedure to call a webservice on the internet.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |