473,473 Members | 1,549 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Receiving a MIME attachment from a webservice.

Hello.

I'm trying to build a client using .NET/C# that is capable of
communicating with an existing Webservice written in Java using Apache
Axis. Now, I've encountered a problem trying to retrieve binary data
(i.e. downloading files) which is sent by the service using the "SOAP
with attachments" format (as per
http://www.w3.org/TR/SOAP-attachments), i.e. as a MIME
multipart/related message. Apparently, the.NET Webservice library does
not seem to understand this form of message, at least I've not found a
way to make it accept one. The WSE doesn't help either, from what I
gather, it only provides support for DIME, which in turn the Web
Service is unable to provide.

The only promising approach I've found so far would be to create a
SoapExtension class (similar to what is described in the article at
http://msdn.microsoft.com/msdnmag/is...s/default.aspx)
which, when added to the WebMethods that return MIME messages,
intercepts the response stream, parses the MIME content, extracts the
XML body and replaces the original MIME content with it and ... well, I
admit I'm not that far yet, but I suppose I just have to save the
attachments somewhere and find a way to pass them to the client calling
the method.

However, this seems to be a lot of work compared to the relative ease
with which it was possible to interface with other WebService methods
that didn't involve attachments, especially because it would require me
to write my own MIME parser... So if there's an easier way, I'd love to
hear about it. Any suggestions would be welcome. Thanks.

Nov 23 '06 #1
0 1632

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: matt roberts | last post by:
Hello, I am parsing a mailbox using the imap functions, pulling out images attached and putting them into mySQL as BLOB fields. I am having problems displaying images once they are stored in...
0
by: Matthew Lenz | last post by:
We've got a couple emails that are sent to an account on a daily basis from a third party vendor we work with. They mime encode the actual data (text/plain) and include it as an attachment (the...
1
by: SW | last post by:
I have an ASP page that causes Excel to be loaded on the client PC with the text sent from within the page. An excerpt of it is shown below: With Response .ContentType =...
1
by: NM | last post by:
I need an advise on how to proceed. My understanding is that .net doesn't support mime and attachment web services. First question, is that true? If thats true, is there any tip or how-to...
5
by: LS | last post by:
Can a WebMethod return an Interface type? Can we pass an interface parameter ? Example : public interface IEntity { long Id { get; set; } string Name { get; set; } }
0
by: talkie1 | last post by:
Hi, i work with Visual Studio 2003 und i have a C# - WebApplication in which i make a stream from a *.doc file! Code WebForm1: ... DimeAttachment attachment = new...
2
by: asnowfall | last post by:
I am trying to build System.Mail.MailMessage object out of mime encoded SMTP data. I have following questions Byte byteMailData; //mime encoded STMP data for "email with attachment" 1)...
1
by: jcor | last post by:
Hi, I'm trying to create a script that send a file in attachment of a mail: my code is something like this: #set up email my $to = "xxx\@xxxxxx.com"; my $from =...
5
by: xmaverick | last post by:
Hello, I'm a newbie to perl and i'd like some assistance trying to figure out how to send an attachment using MIME::Lite. I have searched the net far and wide and have used and modify different...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.