VB6 & SOAP multipart attachments
Hi everyone
I have a SOAP message coming back that is the following:
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><soapenv:Body><getFileNamedResponse xmlns="http://presentment.docucorp.ib.metlife.com"><getFileNamed Return href="cid:F573BFC87EB8C37A61865B6CB3878528" xmlns:apachesoap="http://xml.apache.org/xml-soap"/></getFileNamedResponse></soapenv:Body></soapenv:Envelope>
There's the contentID F573BFC87E...etc in there, and I can retrieve that. What I'm stuck on and can't find much of on the 'net is how to retrieve the attachment (a pdf) and display it.
Some parts after the SOAP envelope begin like this:
------=_Part_3_1439847890.1124402317089
Content-Type: application/pdf
Content-Transfer-Encoding: binary
Content-Id: <F573BFC87EB8C37A61865B6CB3878528>
%PDF-1.3
%âãÃÃ
11 0 obj<</Linearized 1/L 9768/H[ 659 295]/O 13/E 8627/N 1/T 9501>>
endobj
xref
11 17
0000000016 00000 n [truncated]
Any help is greatly appreciated for this newbie.
Thanks!
"A spirit with a vision is a dream with a mission"
__________________
\"A spirit with a vision is a dream with a mission\"
|