如何使用表单数据在SoapUI 5.1.2中为REST服务执行POST Req

时间:2015-02-09 14:42:56

标签: rest post soapui multipartform-data

你能帮我解决一下我的问题吗?

使用Postman(REST客户端 - chrome扩展)我对一个REST服务发帖,我从服务中得到了正确的答案。 答案是" 201创建"并在DB中添加一个新行。

网址= http://suring-t.suremptec.com.ar/gis/13/rest/1.0/organizations

form-date = metadata

    {
        "meta" : {
            "version" : "1.0",
            "description" : "Organization"
        },
        "id" : null,
        "name" : "test org",
        "startDate" : "2014-06-05 16:20:31.334",
        "endDate" : null,
        "administrable" : true,
        "published" : true,
        "href" : "\/2\/rest\/1.0\/organizations\/1"
    }

我无法找到使SoapUI(5.1.2)能够使用相同请求的方法。

网址= http://suring-t.suremptec.com.ar/gis/13/rest/1.0/organizations

form-date =
    元数据         {             "元" :{                 "版本" :" 1.0",                 "描述" :"组织"             },             " ID" : 空值,             "名称" :" test org",             "的startDate" :" 2014-06-05 16:20:31.334",             "结束日期" : 空值,             "给药" :真的,             "发表" :真的,             " HREF" :" /2/rest/1.0/organizations/1"         }

回复是" 200 - Ok"但是

任何想法,如何配置soapui请求?

1 个答案:

答案 0 :(得分:0)

这应该让你开始Getting started with REST