You will need WSE2.0 and Visual Studio 2003 to do decent DIME attachments,
but here's what I use:

Note: this is using:
using Microsoft.Web.Services2.Attachments;
using Microsoft.Web.Services2.Dime; 

         DimeAttachment attach = new
DimeAttachment("text/xml",TypeFormat.MediaType,@"C:mypathnameMyUploadFile.xm
l");
         attach.Id = Guid.NewGuid().ToString();
         mySoapClient.RequestSoapContext.Attachments.Add(attach);
         ReferencedBinary outgoingDoc = new ReferencedBinary();
         outgoingDoc.location = attach.Id;
         DocumentSubmissionResponse response =
mySoapClient.myRoutineThatUsesAttachments(param1,param2,outgoingDoc);

Note, you will need to ensure Axis server can accept DIME. .NET cannot speak
MIME out of the box.

Jeremy

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, May 25, 2005 12:46 PM
To: [email protected]
Subject: .NET and attachments to Axis....

Anyone have an example of how to send an attachment in a .NET client to send
to an Axis Server?

I don't care what .NET language since they are pretty much similar.

  Cliff

-----------------------------------------------------------------------
Clifford Grimm
Centera Integration Architect
EMC Centera Engineering
EMC� <http://www.emc.com/>
Where Information Lives
* Office: 508-249-5159 (toll free 877-362-2887 x45159)
* Cell: 978-618-1336
* Fax: 508-249-5495
* E-mail: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
*  Instant Messaging: [EMAIL PROTECTED]


Reply via email to