Using compression with the C # webservice client in Visual Studio 2010

I call webservice using C # and Visual Studio 2010. VS2010 takes care of generating client proxy code when I provide a link to WSDL. Is there a way to configure client code to set the "Accept-Encoding" (gzip, deflate) header and handle compressed responses from the server? If not, how to write your own code to handle this?

0
source share
1 answer

Try this . This article is about using compression using the WCF service. I make the assumption (possibly incorrect) that you control both the service and the client. If this is someone else, you cannot execute Harry Potter and force him to magically compress, unless they have encoded this opportunity. If you are in complete control of both ends, you can do magic .; -)

+1
source

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


All Articles