我是靠谱客的博主 不安仙人掌,这篇文章主要介绍oracle中的soaptest,现在分享给大家,希望可以做个参考。

 

declare
  soap_request varchar2(30000);
  soap_respond varchar2(30000);
  http_req utl_http.req;
  http_resp utl_http.resp;
BEGIN
  soap_request:= '<?xml version="1.0" encoding="utf-8"?>
  <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://service.common.rxn.dbs.com">
  <soap:Body>
  <tns:retrieveFAX>
  <tns:umeroId>f001</tns:umeroId>
  </tns:retrieveFAX>
  </soap:Body>
  </soap:Envelope>';  
  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中的soaptest的全部内容,更多相关oracle中内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(115)

评论列表共有 0 条评论

立即
投稿
返回
顶部