Transfer file between webservice and client

  • Thread starter Thread starter Sunny
  • Start date Start date
S

Sunny

Hi all,
I have to prepare a webservice (framework 1.1, C#) and winapp client (fw
1.1, C#). The service will prepare a file and soul send it to the
client.
Any help in that direction, how to implement file transfer between
webservice and client?

Thanks
Sunny
 
Sunny,

I have to ask, what is "soul send" or did you mean "should" =)

You could always just base64 encode the bytes from the file and then
send that down the line, but there are more elegant methods to transferring
files. Check out the article from the December 2002 issue of MSDN titled
"Sending Files, Attachments, and SOAP Messages Via Direct Internet Message
Encapsulation", located at (watch for line wrap):

http://msdn.microsoft.com/msdnmag/issues/02/12/DIME/

It should give you a good method for transferring files between a web
service and a client (and in a standardized way as well!).

Hope this helps.
 
Sunny,

I have to ask, what is "soul send" or did you mean "should" =)

You could always just base64 encode the bytes from the file and then
send that down the line, but there are more elegant methods to transferring
files. Check out the article from the December 2002 issue of MSDN titled
"Sending Files, Attachments, and SOAP Messages Via Direct Internet Message
Encapsulation", located at (watch for line wrap):

http://msdn.microsoft.com/msdnmag/issues/02/12/DIME/

It should give you a good method for transferring files between a web
service and a client (and in a standardized way as well!).

Hope this helps.

Hi Nicholas,
In the given situation it's really "soul" send :)

So, maybe the DIME will be the way. But are there any sample code and
standard classes both for preparing the DIME message (I saw that there
is a parser in SOAP Toolkit 3.0". And how exactly should look the
declaration of the web method, which sends the information. Any tools
for VS.Net ?!?!
Sorry for asking such a questions, but deadline was yesterday as always
happens :)

Thanks
Sunny
 
Sunny,

There are no tools to integrate this into VS, but there should be code
examples attached with the article.
 
Sunny,

There are no tools to integrate this into VS, but there should be code
examples attached with the article.
Hi Nicholas,
I have installed WSE 1.0, there are a lot of thing in that topic, and
the documentation is pretty good and full with useful samples, so I'll
use it.

Thanks for the support
Sunny
 
Back
Top