tags:

views:

398

answers:

2

Hi,

I am using WCF to upload data to a server.

If the communication fails, is there any way to resume the upload?

+1  A: 

Chunking channel fits your scenario especially when sending large messages.

http://msdn.microsoft.com/en-us/library/aa717050.aspx

codemeit
A: 

Yes, the wsHttpBinding protocol supports what is called "reliable sessions", where intermittent network blackouts can be caught and handled. The sender might need to resend certain bits of the information, but basically, this will give you a certain level of safety.

Check out Michele Leroux Bustamante's 15-part series "WCF Top To Bottom" for more information - installment no. 12 deals specifically with Reliable Messaging.

Or check out the MSDN introduction to reliable messaging in WCF.

Marc

marc_s