I am developing an application for Windows Phone and iOS, and he needs to use the ASP.NET web service (SOAP developed by me). The amount of data that I upload through the web service is relatively large due to the inherent verbosity of XML. I would like to compress server responses to my SOAP calls using the IIS ISAPI compression module. On iOS, I use wsdl2objc, which works great. The Accept-Encoding: gzip,deflate header is present on calls from iOS / wsdl2objc. IIS properly compresses the answer that dandy works.
On Windows Phone, I use automatic SOAP wrappers, with a web service added as a Service Reference. It also (functionally) works fine. The application is functioning correctly, but the header sent by the generated code is Accept-Encoding: identity . I heard through the tubes that the generated code uses WebRequests that support gzip'd content.
Is there an acceptable way to add the Accept-Encoding: gzip header on the phone side or return a compressed Content-Encoding: gzip response from the server?
Thanks in advance!
Note. I am using the ASP.NET web service, not the ASP.NET WCF service.
source share