Send gzip compresses a web service request through WCF

There is a similar question here. GZIP compresses the request to the remote web service through WCF. When I implemented the solution provided by the expert, i.e. WCF client endpoint compression

here is my web.config file code

<bindings>
  <customBinding>
    <binding name="NAME" >
      <binaryMessageEncoding compressionFormat="GZip"/>
      <httpsTransport/>
    </binding>
  </customBinding>
</bindings>
<client>
  <endpoint address="MYENDPOINTURL"
      binding="customBinding"    bindingConfiguration="NAME"
      contract="ICONTRACT"  name="BulkRequestTransmitterPort" />
</client>

below is the error i get

: text/xml; charset = utf-8 (application/soap + msbin1 + gzip). , , IsContentTypeSupported . 807 :                           soapenv:              HTTP- (RFC 1952 - GZIP).                             TPE1112                                            

- , ? `

+4

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


All Articles