微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

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

我需要传递和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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。