cancel
Showing results for 
Search instead for 
Did you mean: 

Testing rest service file upload and one text field using SoapUI

Highlighted

Testing rest service file upload and one text field using SoapUI

I have developed a rest service using jersey which looks like below

        @POST
	@Path("/upload")
	@Consumes(MediaType.MULTIPART_FORM_DATA)
	public Response uploadFile(@FormDataParam("file") InputStream uploadedInputStream,
			@FormDataParam("file") FormDataContentDisposition fileDetail,                @FormDataParam("city") String city){......

 

If I remove city String, then I am able to test file upload test in soap ui by attaching the file with request.But, I am not able to test file upload along with String using SoapUI.

Let me know if someone can help.

 

New Here?
Join us and watch the welcome video:
Top Kudoed Authors