UTL_HTTP Call a Web Service and Pass Parameters as Part of the URL
2014-11-20 16:50
246 查看
SET DEFINE OFF SET SERVEROUTPUT ON DECLARE req UTL_HTTP.REQ; resp UTL_HTTP.RESP; value VARCHAR2(32767); V_DATA VARCHAR2(100) := '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); EXCEPTION WHEN 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
- UTL_HTTP Call a Web Service and Pass Parameters as Part of the URL
- Silverlight: serializing the contents of a web service call
- (Sharepoint 2010) Change the background and font color of text for a web part header
- Configuring and Customizing the Content Query Web Part(转http://blogs.msdn.com/b/ecm/archive/2006/10/
- Business analysis and SOA part 2 of 6: Business service models and the entity-centric business service [by Thomas Erl]
- pass the URL parameters from the webseite page to Flash
- [论文笔记] Leveraging the crowd as a source of innovation Does crowdsourcing represent a new model for product and service innovation? (SIGMIS-CPR, 2012)
- What events are fired as part of the ASP.NET System.Web.UI.Page lifecycle?
- Call web service using HttpWebRequest and serialization
- The principles of service-orientation part 3 of 6: Service abstraction and reuse [by Thomas Erl]
- Changes in behavior of the SysPrep and RIPREP tools after you install Windows XP Service Pack 2
- 依赖倒置原则(DIP)转自:http://www.infoq.com/cn/articles/Implements-DIP-of-Web-Service
- Web Service Error: “The request failed with HTTP status 401: Unauthorized.”-ZT
- .net web service and http proxy FAQ
- The solution of weblogic webservice Exception.
- 论文原稿:Research on the Status Quo and System architecture of the Web Information Resource Evaluation
- Changes in behavior of the SysPrep and RIPREP tools after you install Windows XP Service Pack 2
- Mothers as Seen Through the Eyes, and the Years, of TV and Film
- Call SOAP Web services with Ajax, Part 2: Extend the Web services client