Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XML
|
XML General XML discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 19th, 2005, 05:01 PM
Authorized User
 
Join Date: Oct 2003
Posts: 30
Thanks: 0
Thanked 0 Times in 0 Posts
Default 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\"
 
Old November 27th, 2012, 12:13 PM
Registered User
 
Join Date: Nov 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

has anyone come up with a solution to this problem? I am having the exact same issue. I have a web service that is returning a multipart response, where a PDF attachment. I need to extract that attachment and provide it to the user with classic ASP
 
Old November 27th, 2012, 05:06 PM
samjudson's Avatar
Friend of Wrox
 
Join Date: Aug 2007
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

This probably didn't get a reply because this is an XML forum, not a Mime/PDF/Classic ASP forum (and just because the question starts off by mentioning SOAP doesn't mean the answer has anything to do with XML).

You need something to read MIME encoded multipart messages by the sounds of it, which is nothing to do with XML.
__________________
/- Sam Judson : Wrox Technical Editor -/

Think before you post: What have you tried?





Similar Threads
Thread Thread Starter Forum Replies Last Post
Crystal Report & VB6 & SQL Server wlho VB How-To 2 June 5th, 2013 01:58 AM
SOAP attachments - VB6 forkhead XML 1 August 25th, 2005 11:56 AM
Professional VB6 & XML mauro XML 3 May 4th, 2005 07:33 PM
Soap Client & Permissions jlick Pro VB 6 0 June 22nd, 2004 10:38 AM
Calling WebService from VB6 without use SOAP toolk sanjaykabra82 .NET Web Services 1 February 25th, 2004 08:30 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.