WCF GZip Compression Request/Response Processing

前端 未结 2 1411
野的像风
野的像风 2020-12-02 09:43

How do I get a WCF client to process server responses which have been GZipped or Deflated by IIS?

On IIS, I\'ve followed the instructions here on how to make IIS 6 g

相关标签:
2条回答
  • 2020-12-02 09:57

    Here's an answer I gave to another question on the subject. That questio was asked from the perspective of ADO.NET Data Services, but my answer was purely about WCF.

    0 讨论(0)
  • 2020-12-02 10:11

    Thanks for your WCF tip! We're going to be enabling IIS compression for services at my shop, and I'm hoping your solution will work. By "To make this work for Web Services" - did you mean old school SoapHttpProtocol clients? Because the SoapHttpProtocol class has a built-in EnableDecompression property, which will automatically handle the Compression header and response handling.

    0 讨论(0)
提交回复
热议问题