加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

如何在soapui中将xml文件作为参数传递

发布时间:2020-12-16 23:27:54 所属栏目:百科 来源:网络整理
导读:我需要传递和xml文件(完整的xml内容)作为SoapUI中的参数,但我找不到如何发送它.我试过这个 arg0!--Optional:--parameter1lt;testlike thislt;/test/parameter1!--Optional:--parameter2![CDATA[testor like this/test]]/parameter2 但我不想这样.我想从SoapU
我需要传递和xml文件(完整的xml内容)作为SoapUI中的参数,但我找不到如何发送它.我试过这个

<arg0>
<!--Optional:-->
<parameter1>&lt;test>like this&lt;/test></parameter1>
<!--Optional:-->
<parameter2><![CDATA[<test>or like this</test>]]></parameter2>

但我不想这样.我想从SoapUI发送/上传完整的xml文件.如何在SoapUI中附加xml文件作为输入参数?或任何其他解决方案?

提前致谢..

解决方法

看看这个 link.

soapUI supports the following technologies for working with files and
attachments:

  • MTOM – a technology for optimized transfer of binary data in SOAP Messages
  • SOAP with Attachments in accordance with Attachments Profile – a MIME-based attachment mechanism for the SOAP/HTTP binding
  • Inline files for binary content – soapUI specific functionality for simplifying handling of binary message content

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读