C# 不支持mimetype的WCF服务问题

C# 不支持mimetype的WCF服务问题,c#,wcf,basichttpbinding,C#,Wcf,Basichttpbinding,我正在构建一个简单的WCF服务。My web.config如下所示: <?xml version="1.0" encoding="utf-8" ?> <configuration> <system.serviceModel> <bindings> <basicHttpBinding> <binding name="MyBasicHttpBinding"> <secur

我正在构建一个简单的WCF服务。My web.config如下所示:

<?xml version="1.0" encoding="utf-8" ?>
<configuration>
  <system.serviceModel>
<bindings>
    <basicHttpBinding>
        <binding name="MyBasicHttpBinding">
            <security mode="None">
                <transport clientCredentialType="None" />
            </security>
        </binding>
    </basicHttpBinding>
</bindings>
<services>
  <!-- This section is optional with the default configuration
    model introduced in .NET Framework 4 -->
  <service name="WcfService1.Service1" behaviorConfiguration="MyServiceTypeBehaviors">

    <endpoint address="http://companyserver/wcftest/service1.svc"
              binding="basicHttpBinding"
      bindingConfiguration="MyBasicHttpBinding"
              contract="WcfService1.IService1" />

    <endpoint address="mex"
              binding="mexHttpBinding"
              contract="IMetadataExchange" />
  </service>
</services>
<behaviors>
    <serviceBehaviors>
        <behavior name="MyServiceTypeBehaviors" >
            <serviceMetadata httpGetEnabled="true" />
        </behavior>
    </serviceBehaviors>
</behaviors>

  </system.serviceModel>
</configuration>
当我尝试使用该服务时,它会显示以下错误消息:


内容类型应用程序/soap+xml;服务不支持字符集=utf-8。客户端和服务绑定可能不匹配。

检查客户端和服务中的绑定配置。那里一定有出入。例如,您是否在客户端和服务器上使用相同的安全模型?

如何使用该服务?例外情况是,您的客户机在SOAP 1.2中发送请求,但您的服务需要SOAP 1.1