473,804 Members | 3,211 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Transfer file between webservice and client

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
Nov 15 '05 #1
4 1892
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.
--
- Nicholas Paldino [.NET/C# MVP]
- ni************* *@exisconsultin g.com

"Sunny" <su******@icebe rgwireless.com> wrote in message
news:MP******** *************** *@msnews.micros oft.com...
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

Nov 15 '05 #2
In article <OJ************ **@tk2msftngp13 .phx.gbl>,
ni************* *@exisconsultin g.com says...
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
Nov 15 '05 #3
Sunny,

There are no tools to integrate this into VS, but there should be code
examples attached with the article.
--
- Nicholas Paldino [.NET/C# MVP]
- ni************* *@exisconsultin g.com

"Sunny" <su******@icebe rgwireless.com> wrote in message
news:MP******** *************** *@msnews.micros oft.com...
In article <OJ************ **@tk2msftngp13 .phx.gbl>,
ni************* *@exisconsultin g.com says...
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

Nov 15 '05 #4
In article <uv************ **@TK2MSFTNGP09 .phx.gbl>,
ni************* *@exisconsultin g.com says...
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
Nov 15 '05 #5

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

Similar topics

4
7510
by: Sunny | last post by:
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
0
1403
by: Sanjay | last post by:
I have a question whose answer will help me save a lot of time in investigation and implementation. Becuase we have a mix of platforms (Windows/Unix etc) in our environment I would like to implement a web service using XML/SOAP (assuming SOAP is also implemented in other languages like Perl/Java etc) that returns a large dataset (20 or 30 or even 100 megs) that the client can save to a file at his end for futher automated processing. ...
10
827
by: Alphonse Giambrone | last post by:
I am trying to develop a web service to accept a file uploaded via http post from a vba (Access) application. Thanks to helpful links in a vb newsgroup and my previous work with WinInet api I was able to write the code to do the upload. I know this works because I tested by posting to an asp page that saves the file. Now I need to create a .NET web service to accept and save the file. Of all the web service samples I found, the only ones...
0
1091
by: Daniel | last post by:
hi ng, i have a webservice method that provides a object array that i would like to bind with a datalist on client side. the problem is that a datalist needs property fields to bind to, but webservice client side, the objects properties are recognized as public fields. And in the wsdl file, there is no difference between for example: public string Field1; and
16
5087
by: Lacka | last post by:
Hi, How can I transfer files via FTP under asp.net? Don't found any info... thanks, Lacka
4
2142
by: Weston Weems | last post by:
I've got the simple problem where I'd like to transfer somewhat large files to my webserver via http/webservice/something like that. My question is what kinda limits have people been able to hit? Is 500mb unreasonable or not. Client doesnt have to be a typical webbrowser, so I could theoretically chunk it up and send chunks to the server, when completed, re- assemble and write file etc.
10
1639
by: ad | last post by:
I want to use WebServer to receive a DataSet from Client with internet. The DataSet is some bigger, there are 50 fields and about 50000 rows in it. Is it OK to do so? Will DotFrameWork or IIS compress the tream when transferring?
5
5630
by: BobAchgill | last post by:
Can you point me to a simple example of how to transfer a file (send or receive) using a webservice. Thanks! Bob PS. Pardon my double posting. I also posted to the webservices forum.
0
928
by: JJ | last post by:
I have a requirement where I need to transfer a web.config from one webservice to another webservice. The environment for this will be intranet only. I will use a xaml win app client to initiate this process to webservice. What is the best approach for transfering this file? My design is to update a web.config in one webservice and pass it onto another sitting on the machine where the web app lives. Does anybody see any other issues I...
1
1432
by: minhchieu | last post by:
Hi everyone, I'm working with webservice on Net 2.0. I have a mysql database whose size is about 200MB. I want to make a copy of this database and send it to client through webservice in XML format. I try to do this in some ways. I divide and read small parts of the database then save in a XML file on Webserver machine so that i will compress it before sending to client. However, when webserver is reading data from database, it is broken....
0
9585
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10586
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10338
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10323
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9161
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7622
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6856
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4301
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 we have to send another system
3
2997
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.