WCF service issue

With a traditional synchronous ASMX Web Services request, the client connects, makes the request, and waits for the entire message body to be returned.

I was wondering if it would be possible for chunks of data to be dumped back to the client with WCF?

This way I can display some progress in the client application during the operation.

+2


source to share


2 answers


Using WCF, you can use streaming or duplex messages to achieve this. Streaming usage is limited to returning a single stream object. using duplex duplex messaging you pass a callback channel to the server and it can use that channel to make as many calls as you like to the client.



+1


source


With WCF, you can use streaming download for upload / download. Check the links:

Streaming WCF to MSDN



An example of transferring files to CodeProject

+2


source







All Articles