Using Wcf with gzip compression

We have a wcf service that accepts a large amount of data. As a requirement, we want to take gzipped request objects and respond to them using the same compression. How can i do this? I could not find any document describing this problem.

How can I develop a wap-soap service that works this way and how to use such services?

+3
source share
2 answers

Microsoft has a sample that demonstrates this (you can compile your code and just connect it to your application)

GZip Encoder Example

WCF / WF / Cardspace samples have a more complete sample:

Windows Communication Foundation Images

If you look at WCF / Extensibility / MessageEncoder / Compression, there is a more complete sample with an example client and server

+6
source

Source: https://habr.com/ru/post/1444091/


All Articles