开发者

Can I use Compression in WCF?

we hosted WCF services in I开发者_运维问答IS 5.1 wndows xp sp3 with httpBasicBinding.

The data tranferered is huge in size and transfered every 1 minute.

For this to less data transfer Is it possible to compress the response of WCF service by using default http compression ? Can I have some sample code / article for using http comression in WCF?

nRk


There's a project on Codeplex available, I've used it successfully in projects.


See here: http://social.msdn.microsoft.com/forums/en-US/wcf/thread/5c67b0da-9e50-4ee1-b7ac-a4733c580980/

Anyway, have you considered compressing the data before it is sent, and uncompressing it back upon reception?


Another option would be to explore the streaming capabilities of WCF: http://msdn.microsoft.com/en-us/library/ms731913.aspx

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜