Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/333.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 通过WCF将GZIP压缩请求发送到web服务_C#_Xml_Web Services_Wcf_Soap - Fatal编程技术网

C# 通过WCF将GZIP压缩请求发送到web服务

C# 通过WCF将GZIP压缩请求发送到web服务,c#,xml,web-services,wcf,soap,C#,Xml,Web Services,Wcf,Soap,这里也有类似的问题 当我实现了专家提供的解决方案时 i、 e.WCF客户端端点压缩 这是我的web.config文件代码 <bindings> <customBinding> <binding name="NAME" > <binaryMessageEncoding compressionFormat="GZip"/> <httpsTransport/> </binding>

这里也有类似的问题 当我实现了专家提供的解决方案时 i、 e.WCF客户端端点压缩

这是我的web.config文件代码

<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>

下面是我得到的错误

错误:内容类型为text/xml;响应消息的charset=utf-8与绑定的内容类型(application/soap+msbin1+gzip)不匹配。如果使用自定义编码器,请确保正确实现IsContentTypeSupported方法。响应的前807个字节是:' soapenv:客户端 请求消息必须使用HTTP压缩(RFC1952-GZIP)发送。 TPE1112 "

有人能告诉我哪里做错了吗``

谢谢