Thursday, August 16, 2012

Download large file through routing proxy and stream

In this sceario, we have a WCF service to communicate to SharePoint document library to download files, potentially quite big file, which why are using wcf stream mode. Also the service is in internal data zone and it has to go through wcf routing service for the security reason.

Here is some findings when dealing with it and the afternoon about,
1. have to use basicHttpBinding for stream.
WsHttpBinding doesn't support streaming due to the reliable messaging protocol (WS-RM), which requires that messages are buffered on either end.
2. need to modify the MaxMessageSize property in the routing service config as well, not just the client and service.






No comments: