There actually isn't any xsd mapping for the DataHandler. Some MIME savvy implementations actually generate MIME sections in the description of the response in the WSDL, however getting this to interpolate is proving to be less than trivial.
 
The best way I have found so far is to manually add the attachments to the message and simply be aware that the specific client you are working with (regardless of platform) needs to parse attachments (most SOAP implementations include some sort of mechanism for this).
 
Beware, Microsuks .NET Framework (Enhancment 1.0) ONLY supports DIME encoded messages that include atachments (as opposed to MIME which most other popular Java implementations use). Seems so surprising that microsoft would forse there development methods on the development community like that... strange :)
 
Steve Louhran has written and submitted a document to this list that is rather help full in this very topic. I highly recommend it, I think it covers exactly what you are looking for.
-----Original Message-----
From: Praveen Peddi [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 03, 2003 2:11 PM
To: [EMAIL PROTECTED]
Subject: calling SOAP with attachments from non java application

Hi All,
I have a soap method on the server side that implements soap with attachments (method takes DataHandler as an argument). we have clients implemented in different programming languages like Java, C, VB and accessing soap services. With Java everything works perfect. Now we are trying to implement a VB based client that uses Microsoft SDK toolkit to build the soap envelopes and connect to soap services. All the services works fine but soap with attachments seems to have some problems. What is the SOAP xsd mapping type for DataHandler. Does any one has sample code that builds the SOAP envelop built in non java.
The SOAP method on the server side looks as follows:
 

public String uploadContentObject(long sessionID, String containerID,

String xmlString, DataHandler source, String sourceFileName,

DataHandler thumb, String thumbFileName)

 

Thanks

Praveen

Reply via email to