如何在SOAP-UI中复制复合POST

时间:2017-10-12 16:55:57

标签: rest soapui

我试图测试接受某个请求的端点。启动请求的过程需要5分钟,所以我想在SOAP-UI中复制它。我不确定如何让请求看起来如下所示。

Host: somedomain.net
User-Agent: Jakarta; Commons-HttpClient/3.0.1
--7ZRj4zj5nzTkWtBlwkO5Y4Il-En_uTGP2enCIMn
Content-Disposition: form-data; name="companyId"
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 8bit

985
--7ZRj4zj5nzTkWtBlwkO5Y4Il-En_uTGP2enCIMn
Content-Disposition: form-data; name="inputFormData"
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 8bit

<?xml version="1.0" encoding="UTF-8" standalone="yes"?><response>Response XML Data</response>
--7ZRj4zj5nzTkWtBlwkO5Y4Il-En_uTGP2enCIMn
Content-Disposition: form-data; name="completedAgreement"; filename="48ce7fa4079790440a964815a744d232.zip"
Content-Type: application/octet-stream; charset=ISO-8859-1
Content-Transfer-Encoding: binary

PK

任何帮助都将不胜感激。

1 个答案:

答案 0 :(得分:0)

我无法在SOAP-UI中重新创建,但我能够创建一个简单的html表单来完成工作。

enctype

最重要的部分是将form代码中的enctype="multipart/form-data"设置为$(Release.ReleaseName)