Utl_http call a Web Service and Pass Parameters as part of the URL

Source: Internet
Author: User

SET DEFINE OFFSET serveroutput ondeclare  req utl_http. REQ;  Resp Utl_http. RESP;  Value VARCHAR2 (32767);  V_data VARCHAR2 (+): = ' strdate= ' 31-apr-2012 ' &strname= ' testname '; BEGIN  Req: = utl_http. Begin_request (' http://myServer/Test/TestWebService.asmx/StartBiztalkProcedure ', ' POST ', ' http/1.0 ');  Utl_http.set_header (req, ' content-type ', ' application/x-www-form-urlencoded ');  Utl_http.set_header (req, ' Content-length ', Length (V_data));  Utl_http.write_text (req, v_data);  RESP: = utl_http. Get_response (req);  LOOP     utl_http. Read_line (RESP, value, TRUE);     Dbms_output. Put_Line (value);  END LOOP;  Utl_http. End_response (RESP); Exceptionwhen utl_http. End_of_body then  utl_http. End_response (RESP); end;/

Utl_http call a Web Service and Pass Parameters as part of the URL

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.