473,795 Members | 3,255 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
Jul 21 '05 #1
4 7509
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

Jul 21 '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
Jul 21 '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

Jul 21 '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
Jul 21 '05 #5

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

Similar topics

4
1892
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
1402
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. ...
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
5086
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
5629
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
927
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
9672
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9519
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,...
1
10164
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
9042
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
7540
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
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
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
2
3727
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2920
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.