Ask a Question related to ASP.NET Web Services, Design and Development.
-
Ipsita #1
Doubt in SOAP with DIME attachments!
Hi!
I was going through the WSE 2.0 documentation to try SOAP with DIME
attachments. The example shows the server sending an image file and
the client displaying it in a picture box control. How do I do it, if
the server has to say eg a doc/text/pdf file and the client has to
read that and show that in a textbox control. Also how will the client
save it on to its local machine.
Please help me in this matter.
Thanks
Ipsita
Ipsita Guest
-
DIME Attachments & WSDL
I was working on WSE 2.0 & DIME. I used the Attachments sample provided by SDK and saved the SOAP request (with headers) into a file. What I noticed... -
DIME attachments break double-byte characters using WSE 1.0 SP1
Using the .NET framework and WSE 1.0 SP1, I have built a web service which receives data from a web service client and saves it to disk in a text... -
How to send a DIME attachment with SOAP
Hi! I am trying SOAP with DIME attachments in web services. The web service sends the file as attachment say "test.doc", and the client has to... -
Using DIME Attachments with AXIS 1.1
I try to to post attachments to a server from a client app. The attachments can be very large 200MB or more. The server and a proxy class for the... -
SOAP with Attachments using MIME, no DIME
Hello Craig - Many have asked for this, but MS hasn't widely publicized the fact that MSDN magazine had a sample back in Feb.... -
Dan Rogers #2
RE: Doubt in SOAP with DIME attachments!
Hi Ipsita,
When you consider that display of a particular file types requires the
appropriate display target (e.g. a picture box for a picture, an instance
of word for a word document, and an instance of Acrobat Reader for PDF
files, etc, I doubt that you'll be successful in displaying every
non-picture file type in a text box.
If you think about how the web browser might be able to associate the files
it receives from an HTTP GET request and launch the right viewers, you can
observe that the first thing that happens is that the file is saved to
disk. And then a shellExecute win32 call is launched, passing the file
name, including its extension. The normal windows extension mechanism does
the rest.
For a .Net client, writing the file is simple - you could use a
streamwriter, or whatever is appropriate. Don't use a textwriter to write
a binary file, however. Then to launch the right viewer, you need to
launch the right reader (e.g.)
System.Diagnostics.Process.Start(new
System.Diagnostics.ProcessStartInfo(path));
Passing the right path to the file you've written.
If you have a control that is compatible with the data you received in the
attachment, such as a text box for a unicode string, you can direclty
assign the instance of the data to the control. You cannot just assign a
binary word document in memory to a text box, however, as you would need a
special control that has a property that is capable of decoding a word
document file from an in memory instance.
I hope this helps
Dan Rogers
Microsoft Corporation
--------------------05:16:43 GMT)>From: [email]ipsita.mohanty@gmail.com[/email] (Ipsita)
>Newsgroups: microsoft.public.dotnet.framework.aspnet.webservic es
>Subject: Doubt in SOAP with DIME attachments!
>Date: 25 Oct 2004 22:16:43 -0700
>Organization: [url]http://groups.google.com[/url]
>Lines: 13
>Message-ID: <ef1b2b65.0410252116.31edba6c@posting.google.com >
>NNTP-Posting-Host: 24.6.231.155
>Content-Type: text/plain; charset=ISO-8859-1
>Content-Transfer-Encoding: 8bit
>X-Trace: posting.google.com 1098767803 27715 127.0.0.1 (26 Oct 2004cpmsftngxa10.phx.gbl!TK2MSFTNGXA03.phx.gbl!TK2MSFT NGP08.phx.gbl!newsfeed00.s>X-Complaints-To: [email]groups-abuse@google.com[/email]
>NNTP-Posting-Date: Tue, 26 Oct 2004 05:16:43 +0000 (UTC)
>Path:
ul.t-online.de!t-online.de!news.glorb.com!postnews1.google.com!not-for-mailmicrosoft.public.dotnet.framework.aspnet.webservic es:26236>Xref: cpmsftngxa10.phx.gbl>X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.webservic es
>
>Hi!
>
>I was going through the WSE 2.0 documentation to try SOAP with DIME
>attachments. The example shows the server sending an image file and
>the client displaying it in a picture box control. How do I do it, if
>the server has to say eg a doc/text/pdf file and the client has to
>read that and show that in a textbox control. Also how will the client
>save it on to its local machine.
>
>Please help me in this matter.
>
>Thanks
>Ipsita
>Dan Rogers Guest



Reply With Quote

