I’m testing a SOAP endpoint that returns a structured XML response with one or more PDFs, using MTOM. In the response, I see one or more xop:Include elements like this:
<xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:0345bf1f-ed3f-4aa5-81b9-b4ac54e2d916-30@schemas.test.nl"/>
Further in the response, I find the binary encoding of the PDF:
Content-Type: application/pdf
Content-Transfer-Encoding: binary
Content-ID: <0345bf1f-ed3f-4aa5-81b9-b4ac54e2d916-30@schemas.test.nl>
Content-Disposition: attachment; name="asd-rene.pdf"
....
What can I do in Postman to download this PDF directly? Copying the binary content and converting it to a PDF with another tool is inconvenient, especially when there are multiple PDFs in the response.