Forum Discussion

johnnykuo's avatar
Senior Member
8 years ago

soapUI: multipart form-data. i don't know how to post form-data

i used 'postman' to test my api, the media type of body is form-data.

the HTTP code:

POST /xxxxxxxx/xxx HTTP/1.1
X-ML-AppId: xxxxxxxxxx
X-ML-Request-Sign: xxxxxxxxxxxxx
Cache-Control: no-cache
Postman-Token: xxxxxxxxxxxxxxxxxxxx
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

Content-Disposition: form-data; name="userId"

Content-Disposition: form-data; name="content"

Content-Disposition: form-data; name="latitude"

Content-Disposition: form-data; name="longitude"

Content-Disposition: form-data; name="file"; filename=""


so, i want to run this test case in the testSuite of soapUI, but when i chose the media type to multipart/form-data, i have no idea how to input the key and value of form-data.

like this:


i just want post form-data like postman.

2 Replies

  • sesleri's avatar
    New Contributor

    Soapui breaks multipart form requests right now because it tries to insert its automatic boundary everywhere. I got my requests to work despite this bad functionality by ignoring their boundary in my request.  Set your own boundary under headers and manually put your request in the payload.  See my screenshot.  

  • mazam's avatar
    New Contributor

    I have tried this. Issue is that I have an audio file attachment. When I paste it's contents in the window the contents get corrupt since they get converted to ascii.. 

    I want a way to be able to modify the boundary that SOAP UI put's in so it's acceptable to the server or find another way to send the request without attaching the file.