How to enable IIS compression for WCF services?

后端 未结 4 1282
南笙
南笙 2020-12-09 21:02

I currently use a custom gzip encoder for my WCF service. I want to replace it with the built-in IIS 7 compression if that is possible. I can\'t find info online on how to t

4条回答
  •  醉话见心
    2020-12-09 21:52

    Perhaps it depends on the specific WCF service setup you are using, but for the applications I have used it in (all were mixed access for both .NET applications and Silverlight pages), the generated WCF client class contained an EnableDecompression property that can be set to true. After that my Winforms apps send the correct headers and the webservice communication is correctly compressed.

提交回复
热议问题