欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  数据库

Oracle中的soaptest

程序员文章站 2024-01-04 11:54:34
...

Oracle中的soaptest declare soap_request varchar2(30000); soap_respond varchar2(30000); http_req utl_http.req; http_r

Oracle中的soaptest

declare
soap_request varchar2(30000);
soap_respond varchar2(30000);
http_req utl_http.req;
http_resp utl_http.resp;
BEGIN
soap_request:= '



f001


';
http_req:= utl_http.begin_request( 'http://127.0.0.1:8080/ipe/services/retrieveFaxService' , 'POST' , 'HTTP/1.1');
utl_http.set_header(http_req, 'Content-Type', 'text/xml; charset=utf-8');
utl_http.set_header(http_req, 'Content-Length', length(soap_request));
utl_http.set_header(http_req, 'SOAPAction', 'urn:receiveFAX');
utl_http.write_text(http_req, soap_request);
http_resp:= utl_http.get_response(http_req);
utl_http.read_text(http_resp, soap_respond);
utl_http.end_response(http_resp);
END;
/

更多Oracle相关信息见Oracle 专题页面 ?tid=12

Oracle中的soaptest

上一篇:

下一篇: