开发者

WCF service to get Files from a SharePoint 2010 library fails for huge files when the client is running on a remote box

I have a WCF webservice hosted on IIS7.0. I am using this service to query a document library on SharePoint 2010 to get the Items from the library using SP object model. Client creates a service reference of this service and tries to get the items from the SP 2010 Library. This works fine for smaller files, but when the client tries to receive huge files, my service times out. If the client is running on the same box where the WCF service is hosted, th开发者_C百科en there is no issue accessing the files of any size, but when the client is run from any other remote boxes, the service times out.

I am using WSHttpBinding, with MTOM message encoding

Please let me know what I am missing


Few things to look at: Enable tracing on server side to see exactly what caused the connection to time out. See this link for more info.

Default time out for an http request in SP 2010 is 120 seconds. See this link on how to increase the default timeout.I do not suspect this as a problem, but do this only if everything else does not work.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜