I have a REST service exposed like this. Note:Please observe the headers too.
@GET
@Path("/{id}/content")
@Produces({ MediaType.APPLICATION_OCTET_STREAM })
public Response getDocumentContentById(@PathParam("id") String id) {
ResponseBuilder responseBuilder = Response.ok(Some object);
responseBuilder.header("Content-Disposition", "attachment; filename=" + nodeContent.getName());
return responseBuilder.build();
}
Accessing above URI i.e. http://localhost:8080/home/cmistest/app/documentservices/rest/nodes/21072/content in a browser would download a file.
Now I want to consume the the same service from SOAP UI as GET service which should list the file in Attachments tab of response in SOAP UI as shown below
How can I consume from SOAP UI? Thanks.