Will this work with a multipart/related content type?

Mar 20, 2014 at 5:22 PM
Here is my response that I am trying to parse and convert to a PDF stream. Everything below %PDF-1.1 is going to be the PDF binary content.

HTTP/1.1 200 OK
Server: gSOAP/2.7
Content-Type: multipart/related; charset=utf-8; boundary="==nGpzR/KspN6ry7jG8CU4bonN2aujzfJamyN3xYjaldFXYpeUryNGb0UROC0B=="; type="application/xop+xml"; start="<SOAP-ENV:Envelope>"; start-info="application/soap+xml"
Content-Length: 247517
Connection: close

--==nGpzR/KspN6ry7jG8CU4bonN2aujzfJamyN3xYjaldFXYpeUryNGb0UROC0B==
Content-Type: application/xop+xml; charset=utf-8; type="application/soap+xml"
Content-Transfer-Encoding: binary
Content-ID: <SOAP-ENV:Envelope>

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="(link) xmlns:SOAP-ENC="(link) xmlns:xsi="(link) xmlns:xsd="(link) xmlns:xop="(link) xmlns:xmime5="(link) xmlns:m="(link) xmlns:x="(link) <SOAP-ENV:Body>
<m:GetDocImageResponse>
<x:data>
<x:item xmime5:contentType="*/*">
<xop:Include href="cid:id1"/></x:item>
</x:data>
</m:GetDocImageResponse>
</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

--==nGpzR/KspN6ry7jG8CU4bonN2aujzfJamyN3xYjaldFXYpeUryNGb0UROC0B==
Content-Type: /
Content-Transfer-Encoding: binary
Content-ID: <id1>

%PDF-1.1