Generate documents after calling stand alone -/doucments API


I call the documents API endpoint and get a successful response. However I do not see the documents generated anywhere in the response. SoapUI responds with the document as an attachment. I cant seem to figure this out in postman. Please help!

Hi @robin.christison,

It would help to know which specific API you’re talking about. The more details you’ll provide the better we’ll be able to help.

hi @arlem

rob and I work together and basically we’re trying to call one of our internal services and that service responds with a multipart response. the first ‘part’ is XML and then subsequent parts are PDFs (one part per PDF … so six parts would mean one XML chunk and then five PDFs). in SOAP UI I think there’s native support and the non-application/xml parts get shown in the ‘Attachments’ tab, but with Postman it just shows the full stream. a minor clip is below (each of the three parts is much larger than I’ve included):

Content-Disposition: form-data; name="XMLDATA"
Content-Type: application/xml;

<?xml version="1.0" encoding="UTF-8"?><a-bunch><of-my><xml-data><would-be-here /></xml-data></of-my></a-bunch>

Content-Disposition: form-data; name="First.pdf"; filename="First.pdf"
Content-Type: application/pdf

1 0 obj
/Title <>
/Author <>
/Keywords <>
/Subject <>
/Creator <504446344E455420332E322E342E312028687474703A2F2F7777772E6F32736F6C
/Producer <504446344E455420332E322E342E312028687474703A2F2F7777772E6F32736F6C
/CreationDate <443A32303230303432373131343733322D303027303027>
/ModDate <443A32303230303432373131343733322D303027303027>

Content-Disposition: form-data; name="Second.pdf"; filename="Second.pdf"
Content-Type: application/pdf

%ÐÄÆ´ÎÅÔ …€€€
1 0 obj
/Title ()
/Author (john.smith on ABC123ZYX987)
/Keywords (Broadens)
/Subject ()


@arlem any thoughts or help with this is greatly appreciated.

@robin.christison Sorry for the late reply. Postman doesn’t have an “attachment” tab, you’d need to save the response to a file using one of the solutions highlighted here: How to save request & response result as a file?

Hope that helps!