You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Gr...@emc.com on 2005/05/25 21:46:03 UTC

.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: grimm_clifford@emc.com <ma...@emc.com> 
*  Instant Messaging: grimm_clifford@yahoo.com



RE: .NET and attachments to Axis....

Posted by Jeremy Hynoski <jh...@gmail.com>.
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: Grimm_Clifford@emc.com [mailto:Grimm_Clifford@emc.com] 
Sent: Wednesday, May 25, 2005 12:46 PM
To: axis-user@ws.apache.org
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: grimm_clifford@emc.com <ma...@emc.com>
*  Instant Messaging: grimm_clifford@yahoo.com