【问题标题】:How use Content-Type=application/xml in oracle apex for pl/sql block如何在 oracle apex 中将 Content-Type=application/xml 用于 pl/sql 块
【发布时间】:2020-06-16 07:30:11
【问题描述】:

我想以 xml 格式接收我在请求正文中传输的数据并将其传输到 select 。现在我成功地设法使用 json,但我需要它 xml 。 我的代码:(

DECLARE 
    te sys_refcursor;
Begin

  htp.p('JSON ename = ' || :name);
  htt.p('JSON city  = ' || :city);

    open te for select * from mk_test where name = :name and city = :city; 
    apex_json.write('teas' , te);

end;

【问题讨论】:

  • 如何在我的代码中获取 xml 正文请求?

标签: oracle api post plsql oracle-apex


【解决方案1】:
OWA_UTIL.mime_header('application/xml');

它帮助了我。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-10-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多