What is the easiest way to add compression to WCF in Silverlight?

后端 未结 4 1423
孤独总比滥情好
孤独总比滥情好 2020-12-23 17:52

I have a silverlight 2 beta 2 application that accesses a WCF web service. Because of this, it currently can only use basicHttp binding. The webservice will return fairly

4条回答
  •  借酒劲吻你
    2020-12-23 17:59

    WS-Compression for WCF allows you to configure compression on the binding.

    See WS-Compression for WCF by Pablo M. Cibraro

    Alternatively, try Microsofts GZip Encoder Sample which "creates an encoder channel that uses the System.IO.Compression.GZipStream class to compress outgoing WCF messages"

提交回复
热议问题