Forum Discussion

Aravind74746's avatar
Established Member
3 years ago

How to add a value which is in JSON format in multipart/formdata in soapUI

I am doing Post method  on rest API in SoapUI where post body content-Type is multipart/form-data. In the body few values are proper string values whereas one value is JSON value. See the example below

Form-data(example) start:

Name1 : Aravind

age : 24

Details:{"Height":"170cms", "weight":"70kgs", "Education":{"Primary":"xyz", "Degree":"abc","PG":"ABCXYZ123456","URL":""}}

Form-data(example) End


For the above form data i have give post body like below in the SoapUI

Header:  Content-Type: multipart/form-data; boundary="123121"

Post Body given in SoapUI:


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




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




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


{"Height":"170cms", "weight":"70kgs", "Education":{"Primary":"xyz", "Degree":"abc","PG":"ABCXYZ123456","URL":""}}



i am getting CDATA[Line length limit 100 exceeded.] ERROR. Could anyone please help me with this?


No RepliesBe the first to reply