Using compression on the WCF and gSOAP web service

I want to add compression to a WCF-based web service to reduce payload and increase throughput. But the problem is that I am using the service from a c / linux application using gSOAP. I know that gSOAP allows compression, but I'm not sure that the gSOAP and WCF web service can talk to each other with compression.

Please provide your experience and help me.

Regards, Kangkan http://www.geekays.net/

+3
source share
1 answer

Suppose you create a gSoap client based on a WSDL file for a WCF service? What you can do is configure the WCF service to use compression, and then generate the gSoap client. If the client and server communicate, it worked.

However, compression is not a standard feature of WCF. I assume you are using basicHttpBinding or wsHttpBinding, in which case you can use MTOM (Message Transfer Optimization Mechanism). MTOM is a compatible standard, so gSoap must support it.

You can also try to extend the binding using the GZIP codec. Microsoft has a sample for this scenario . However, I suppose gSoap does not support this.

+1
source

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


All Articles