简体   繁体   English

WCF 服务客户端:内容类型text/html; 响应消息的 charset=utf-8 与绑定的内容类型不匹配

[英]WCF Service Client: The content type text/html; charset=utf-8 of the response message does not match the content type of the binding

I've got a WCF Service running on my local IIS server.我在本地 IIS 服务器上运行了 WCF 服务。 I've added it as a service reference to a C# Website Project and it adds fine and generates the proxy classes automatically.我已将它添加为 C# 网站项目的服务引用,它添加得很好并自动生成代理类。

However, when I try and call any of the service contracts, I get the following error:但是,当我尝试调用任何服务合同时,出现以下错误:

Description: An unhandled exception occurred during the execution of the current web request.说明:在执行当前 web 请求期间发生未处理的异常。 Please review the stack trace for more information about the error and where it originated in the code.请查看堆栈跟踪以获取有关错误及其在代码中的来源的更多信息。

Exception Details: System.ServiceModel.ProtocolException: The content type text/html;异常详细信息: System.ServiceModel.ProtocolException:内容类型为 text/html; charset=utf-8 of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8).响应消息的 charset=utf-8 与绑定的内容类型不匹配(application/soap+xml;charset=utf-8)。 If using a custom encoder, be sure that the IsContentTypeSupported method is implemented properly.如果使用自定义编码器,请确保正确实施 IsContentTypeSupported 方法。 The first 1024 bytes of the response were: '响应的前 1024 个字节是:'

function bredir(d,u,r,v,c){var w,h,wd,hd,bi;var b=false;var p=false;var s=[[300,250,false],[250,250,false],[240,400,false],[336,280,false],[180,150,false],[468,60,false],[234,60,false],[88,31,false],[120,90,false],[120,60,false],[120,240,false],[125,125,false],[728,90,false],[160,600,false],[120,600,false],[300,600,false],[300,125,false],[530,300,false],[190,200,false],[470,250,false],[720,300,true],[500,350,true],[550,480,true]];if(typeof(window.innerHeight)=='number'){h=window.innerHeight;w=window.innerWidth;}else if(typeof(document.body.offsetHeight)=='number'){h=document.body.offsetHeight;w=document.body.offsetWidth;}for(var i=0;i function bredir(d,u,r,v,c){var w,h,wd,hd,bi;var b=false;var p=false;var s=[[300,250,false],[250,250,false] ,[240,400,假],[336,280,假],[180,150,假],[468,60,假],[234,60,假],[88,31,假],[120,90,假] ,[120,60,false],[120,240,false],[125,125,false],[728,90,false],[160,600,false],[120,600,false],[300,600,false],[300,125, false],[530,300,false],[190,200,false],[470,250,false],[720,300,true],[500,350,true],[550,480,true]];if(typeof(window.innerHeight)== 'number'){h=window.innerHeight;w=window.innerWidth;}else if(typeof(document.body.offsetHeight)=='number'){h=document.body.offsetHeight;w=document.body。 offsetWidth;}for(var i=0;i

I also have a console application which also communicates with the WCF Service and the console app is able to call methods fine without getting this error.我还有一个控制台应用程序,它也与 WCF 服务通信,并且控制台应用程序能够正常调用方法而不会出现此错误。

Below are excerpts from my config files.以下是我的配置文件的摘录。

WCF Service Web.Config: WCF服务Web.Config:

<system.serviceModel>
   <bindings>
      <wsHttpBinding>
          <binding name="WSHttpBinding_IScraperService" 
              closeTimeout="00:01:00" openTimeout="00:01:00" 
              receiveTimeout="00:10:00" sendTimeout="00:01:00"
              bypassProxyOnLocal="false" transactionFlow="false" 
              hostNameComparisonMode="StrongWildcard"
              maxBufferPoolSize="524288" maxReceivedMessageSize="65536" 
              messageEncoding="Text" textEncoding="utf-8"
              useDefaultWebProxy="true" allowCookies="false">
              <readerQuotas 
                  maxDepth="32" maxStringContentLength="8192" 
                  maxArrayLength="16384" maxBytesPerRead="4096" 
                  maxNameTableCharCount="16384" />
              <reliableSession enabled="false"
                  ordered="true" inactivityTimeout="00:10:00" />
              <security mode="Message">
                  <transport clientCredentialType="Windows" 
                       proxyCredentialType="None" realm="" />
                  <message clientCredentialType="Windows" 
                       negotiateServiceCredential="true"
                       algorithmSuite="Default" />
              </security>
          </binding>
       </wsHttpBinding>
    </bindings>
<client>
        <endpoint name="WSHttpBinding_IScraperService"
            address="http://example.com/ScraperService.svc"
            binding="wsHttpBinding" 
            bindingConfiguration="WSHttpBinding_IScraperService"
            contract="ScraperService.IScraperService" >
           <identity>
               <servicePrincipalName value="host/FreshNET-II" />
           </identity>
        </endpoint>
     </client>
</system.serviceModel>

Website Project Service Client Web.Config :网站项目服务客户端Web.Config :

 <system.serviceModel> <bindings> <wsHttpBinding> <binding name="WSHttpBinding_IScraperService" closeTimeout="00:01:00" openTimeout="00:01:00" receiveTimeout="00:10:00" sendTimeout="00:01:00" bypassProxyOnLocal="false" transactionFlow="false" hostNameComparisonMode="StrongWildcard" maxBufferPoolSize="524288" maxReceivedMessageSize="65536" messageEncoding="Text" textEncoding="utf-8" useDefaultWebProxy="true" allowCookies="false"> <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384" maxBytesPerRead="4096" maxNameTableCharCount="16384" /> <reliableSession enabled="false" ordered="true" inactivityTimeout="00:10:00" /> <security mode="Message"> <transport clientCredentialType="Windows" proxyCredentialType="None" realm="" /> <message clientCredentialType="Windows" negotiateServiceCredential="true" algorithmSuite="Default" /> </security> </binding> </wsHttpBinding> </bindings> <client> <endpoint name="WSHttpBinding_IScraperService" address="http://example.com/ScraperService.svc" binding="wsHttpBinding" bindingConfiguration="WSHttpBinding_IScraperService" contract="ScraperService.IScraperService" > <identity> <servicePrincipalName value="host/Fres.NET-II" /> </identity> </endpoint> </client> </system.serviceModel>

Try browsing to http://localhost/ScraperService.svc in the web browser on the server hosting the service, using the same Windows credentials that the client normally runs under. 尝试使用客户端通常在其下运行的相同Windows凭据在托管服务的服务器上的Web浏览器中浏览到http://localhost/ScraperService.svc

I imagine that IIS is displaying an html error message of some description instead of returning xml as expected. 我想象IIS正在显示某个描述的html错误消息,而不是按预期返回xml。

This also can occur when you have an http proxy server that performs internet filtering. 当您具有执行Internet过滤的http代理服务器时,也会发生这种情况。 My experience with ContentKeeper is that it intercepts any http/https traffic and blocks it as "Unmanaged Content" - all we get back is an html error message. 我对ContentKeeper的经验是,它会拦截任何http / https流量并将其阻止为“非托管内容”-我们得到的只是一个html错误消息。 To avoid this, you can add proxy server exception rules to Internet Explorer so that the proxy doesn't intercept traffic to your site: 为避免这种情况,您可以将代理服务器例外规则添加到Internet Explorer,以使代理不会拦截到您网站的流量:

Control Panel > Internet Options > Connections > LAN Settings > Advanced > Proxy Settings 控制面板> Internet选项>连接>局域网设置>高级>代理设置

在此处输入图片说明

An HTML response from the web server normally indicates that an error page has been served instead of the response from the WCF service. 来自Web服务器的HTML响应通常表示已提供错误页面,而不是来自WCF服务的响应。 My first suggestion would be to check that the user you're running the WCF client under has access to the resource. 我的第一个建议是检查您正在其下运行WCF客户端的用户是否有权访问该资源。

I had a similar issue. 我有一个类似的问题。 I resolved it by changing 我通过更改解决了

<basicHttpBinding>

to

<basicHttpsBinding>

and also changed my URL to use https:// instead of http://. 并将我的网址更改为使用https://而不是http://。

Also in <endpoint> node, change 同样在<endpoint>节点中,更改

binding="basicHttpBinding" 

to

binding="basicHttpsBinding"

This worked. 这工作了。

what's going on is that you're trying to access the service using wsHttpBind, which use secured encrypted messages by default (secured Messages). 这说明您正在尝试使用wsHttpBind访问服务,该服务默认使用安全的加密消息(安全消息)。 On other hand the netTcpBind uses Secured encrypted channels. 另一方面,netTcpBind使用安全加密通道。 (Secured Transport)... BUT basicHttpBind, doesn't require any security at all, and can access anonymous (安全传输)...但是basicHttpBind,完全不需要任何安全性,并且可以访问匿名

SO. 所以。 at the Server side, Add\\Change this into your configuration. 在服务器端,将其添加\\更改为您的配置。

<bindings>
    <wsHttpBinding>
     <binding name="wsbind"> 
         <security mode="Message">
             <transport clientCredentialType="Windows" proxyCredentialType="None" />
             <message clientCredentialType="Windows" negotiateServiceCredential="true"
                            algorithmSuite="Default" establishSecurityContext="true" />
         </security>
     </binding>
    </wsHttpBinding>
</bindings>

then add change your endpoint to 然后将更改端点添加到

<endpoint address="" binding="wsHttpBinding" bindingConfiguration="wsbind" name="wshttpbind" contract="WCFService.IService" > 

That should do it. 那应该做。

As with many, in my situation I was also getting this because of an error. 与许多人一样,在我的情况下,我也因为错误而得到了这个。 And sadly I could just read the CSS of the html error page. 可悲的是,我只能阅读html错误页面的CSS。

The source of my problem was also a rewrite rule on the server. 我的问题的根源也是服务器上的重写规则。 It was rewriting http to https. 它正在将HTTP重写为https。

You may want to examine the configuration for your service and make sure that everything is ok. 您可能需要检查服务的配置,并确保一切正常。 You can navigate to web service via the browser to see if the schema will be rendered on the browser. 您可以通过浏览器导航到Web服务,以查看架构是否将在浏览器上呈现。

You may also want to examine the credentials used to call the service. 您可能还需要检查用于调用服务的凭据。

I tried all the suggestions above, but what worked in the end was changing the Application Pool managed pipeline from Integrated mode to Classic mode. 我尝试了以上所有建议,但最终有效的方法是将“应用程序池”管理的管道从“集成”模式更改为“经典”模式。
It runs in its own application pool - but it was the first .NET 4.0 service - all other servicves are on .NET 2.0 using Integrated pipeline mode. 它运行在自己的应用程序池中-但它是第一个.NET 4.0服务-所有其他服务都使用集成管道模式在.NET 2.0上。 Its just a standard WCF service using is https - but on Server 2008 (not R2) - using IIS 7 (not 7.5) . 它只是使用的标准WCF服务是https-但在Server 2008(不是R2)上-使用IIS 7(不是7.5)。

Even if you don't use network proxy, turning 'Automatically detect settings' in proxy dialog makes this exception go off. 即使您不使用网络代理,在代理对话框中打开“自动检测设置”也会使此异常消失。

在此处输入图片说明

I had a similar situation, but the client config was using a basicHttpBinding. 我也有类似的情况,但是客户端配置使用的是basicHttpBinding。 The issue turned out to be that the service was using SOAP 1.2 and you can't specify SOAP 1.2 in a basicHttpBinding. 问题出在该服务使用的是SOAP 1.2,而您不能在basicHttpBinding中指定SOAP 1.2。 I modified the client config to use a customBinding instead and everything worked. 我修改了客户端配置,改为使用customBinding,一切正常。 Here are the details of my customBinding for reference. 这是我的customBinding的详细信息,以供参考。 The service I was trying to consume was over HTTPS using UserNameOverTransport. 我尝试使用的服务是使用UserNameOverTransport通过HTTPS进行的。

<customBinding>
    <binding name="myBindingNameHere" sendTimeout="00:03:00">
        <security authenticationMode="UserNameOverTransport" includeTimestamp="false">
            <secureConversationBootstrap />
        </security>
        <textMessageEncoding maxReadPoolSize="64" maxWritePoolSize="16"
              messageVersion="Soap12" writeEncoding="utf-8">
            <readerQuotas maxDepth="32" maxStringContentLength="8192" maxArrayLength="16384"
                maxBytesPerRead="4096" maxNameTableCharCount="16384" />
        </textMessageEncoding>
        <httpsTransport manualAddressing="false" maxBufferPoolSize="4194304"
              maxReceivedMessageSize="4194304" allowCookies="false" authenticationScheme="Basic"
              bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard"
              keepAliveEnabled="true" maxBufferSize="4194304" proxyAuthenticationScheme="Anonymous"
              realm="" transferMode="Buffered" unsafeConnectionNtlmAuthentication="false"
              useDefaultWebProxy="true" requireClientCertificate="false" />
    </binding>
</customBinding>

In my WCF serive project this issue is due to Reference of System.Web.Mvc.dll 's different version. 在我的WCF服务项目中,此问题是由于参考System.Web.Mvc.dll的不同版本引起的。 So it may be compatibility issue of DLL's different version 因此可能是DLL不同版本的兼容性问题

When I use 当我使用

System.Web.Mvc.dll version 5.2.2.0 -> it thorows the Error The content type text/html; System.Web.Mvc.dll版本 5.2.2.0->引发错误 charset=utf-8 of the response message 响应消息的charset = utf-8

but when I use System.Web.Mvc.dll version 4.0.0.0 or lower -> it works fine . 但是当我使用System.Web.Mvc.dll 4.0.0.0或更低版本 ->时,它工作正常

I don't know the reason of different version DLL's issue but by changing the DLL's verison it works for me. 我不知道使用不同版本的DLL的原因,但是通过更改DLL的版本,它对我有用。

This Error even generate when you add reference of other Project in your WCF Project and this reference project has different version of System.Web.Mvc DLL or could be any other DLL. 当您在WCF项目中添加其他项目的引用并且此引用项目具有不同版本的System.Web.Mvc DLL或可能是任何其他DLL时,甚至会生成此错误。

In my case a URL rewrite rule was messing with my service name, it was rewritten as lowercase and I was getting this error. 在我的情况下,URL重写规则使我的服务名称混乱,将其重写为小写字母,并且出现此错误。

Make sure you don't lowercase WCF service calls. 确保您不小写WCF服务调用。

X++ binding = endPoint.get_Binding(); binding.set_UseDefaultWebProxy(false); X ++ binding = endPoint.get_Binding(); binding.set_UseDefaultWebProxy(false); binding = endPoint.get_Binding(); binding.set_UseDefaultWebProxy(false);

I solved this problem by setting UseCookies in web.config. 我通过在web.config中设置UseCookies解决了这个问题。

  <system.web>
    <sessionState cookieless="UseCookies" />

and setting enableVersionHeader 并设置enableVersionHeader

  <system.web>
    <httpRuntime targetFramework="4.5.1" enableVersionHeader="false" executionTimeout="1200" shutdownTimeout="1200" maxRequestLength="103424" />

If your are using both wshttpbinding along with https request, then i resolved it by using the below configuration change. 如果您同时使用wshttpbinding和https请求,那么我将通过以下配置更改来解决它。

 <security mode="TransportWithMessageCredential">
                    <transport clientCredentialType="None" />
                    <message clientCredentialType="Certificate" />
                </security>

对我来说,当我在Web.config中评论以下行时,此问题已解决

<httpErrors errorMode="Detailed" />

Hy, In my case this error appeared because the Application pool of the webservice had the wrong 32/64 bit setting. 嗨,就我而言,出现此错误是因为Web服务的应用程序池具有错误的32/64位设置。 So this error needed the following fix: you go to the IIS, select the site of the webservice , go to Advanced setting and get the application pool. 因此,此错误需要以下修复:您转到IIS,选择Web服务的站点,转到“高级”设置并获取应用程序池。 Then go to Application pools, select it, go to "Advanced settings..." , select the "Enable 32 bit applications" and make it Enable or Disable, according to the 32/64 bit type of your webservice. 然后转到“应用程序池”,选择它,转到“高级设置...”,选择“启用32位应用程序”,然后根据您的Web服务的32/64位类型将其设为“启用”或“禁用”。 If the setting is True, it means that it only allows 32 bit applications, so for 64 bit apps you have to make it "Disable" (default). 如果设置为True,则意味着它仅允许32位应用程序,因此对于64位应用程序,必须将其设置为“禁用”(默认)。

对我而言,这是Web应用程序连接字符串指向错误的数据库服务器。

NOTE: If your target server endpoint is using secure socket layer (SSL) certificate 注意:如果您的目标服务器端点正在使用安全套接字层(SSL)证书

Change your .config setting from basicHttpBinding to basicHttpsBinding 将.config设置从basicHttpBinding更改为basicHttpsBinding

I am sure, It will resolve your problem. 我敢肯定,它将解决您的问题。

我的解决方案非常简单:从应用程序中备份所有内容,将其卸载,从其余文件夹(而不是文件夹)中删除所有内容,这样我就不必再次授予相同的权限了,然后从备份中复制回文件。

In my case it was happening because my WCF web.config had a return character as its first line.就我而言,这是因为我的 WCF web.config 的第一行有一个返回字符。 It was even more frustrating because it was behind a load balancer and was happening only half the time (only one of the two web.configs had this problem).更令人沮丧的是,它位于负载均衡器之后,并且只发生了一半(两个 web.config 中只有一个有这个问题)。

"

I had a similar issue in my asp.net core 5 web api project to call a soap service.我在我的 asp.net core 5 web api 项目中遇到了类似的问题来调用肥皂服务。 I resolved it by :我通过以下方式解决了它:

1.changing its url : return new System.ServiceModel.EndpointAddress("http:\/\/ourservice.com\/webservices\/service1.asmx?wsdl"); 1.更改其网址:return new System.ServiceModel.EndpointAddress("http:\/\/ourservice.com\/webservices\/service1.asmx?wsdl"); to https<\/strong> :\/\/ourservice.com\/...https<\/strong> :\/\/ourservice.com\/...

  1. use these config in its Reference.cs :在其 Reference.cs 中使用这些配置:<\/li><\/ol>

    private static System.ServiceModel.Channels.Binding GetBindingForEndpoint(EndpointConfiguration endpointConfiguration) { if ((endpointConfiguration == EndpointConfiguration.TaxReturnSoap)) { System.ServiceModel.BasicHttpsBinding result = new System.ServiceModel.BasicHttpsBinding();私有静态 System.ServiceModel.Channels.Binding GetBindingForEndpoint(EndpointConfiguration endpointConfiguration) { if ((endpointConfiguration == EndpointConfiguration.TaxReturnSoap)) { System.ServiceModel.BasicHttpsBinding 结果 = new System.ServiceModel.BasicHttpsBinding(); result.TextEncoding = System.Text.Encoding.UTF8;结果.TextEncoding = System.Text.Encoding.UTF8; result.MaxBufferSize = int.MaxValue;结果.MaxBufferSize = int.MaxValue; result.ReaderQuotas = System.Xml.XmlDictionaryReaderQuotas.Max; result.ReaderQuotas = System.Xml.XmlDictionaryReaderQuotas.Max; result.MaxReceivedMessageSize = int.MaxValue;结果.MaxReceivedMessageSize = int.MaxValue; result.AllowCookies = true;结果.AllowCookies = true; return result;返回结果; } if ((endpointConfiguration == EndpointConfiguration.TaxReturnSoap12)) { System.ServiceModel.Channels.CustomBinding result = new System.ServiceModel.Channels.CustomBinding(); } if ((endpointConfiguration == EndpointConfiguration.TaxReturnSoap12)) { System.ServiceModel.Channels.CustomBinding 结果 = new System.ServiceModel.Channels.CustomBinding(); System.ServiceModel.Channels.TextMessageEncodingBindingElement textBindingElement = new System.ServiceModel.Channels.TextMessageEncodingBindingElement(); System.ServiceModel.Channels.TextMessageEncodingBindingElement textBindingElement = new System.ServiceModel.Channels.TextMessageEncodingBindingElement(); textBindingElement.WriteEncoding = System.Text.Encoding.UTF8; textBindingElement.WriteEncoding = System.Text.Encoding.UTF8; textBindingElement.MessageVersion = System.ServiceModel.Channels.MessageVersion.CreateVersion(System.ServiceModel.EnvelopeVersion.Soap12, System.ServiceModel.Channels.AddressingVersion.None); textBindingElement.MessageVersion = System.ServiceModel.Channels.MessageVersion.CreateVersion(System.ServiceModel.EnvelopeVersion.Soap12, System.ServiceModel.Channels.AddressingVersion.None); result.Elements.Add(textBindingElement);结果.Elements.Add(textBindingElement); System.ServiceModel.Channels.HttpsTransportBindingElement httpBindingElement = new System.ServiceModel.Channels.HttpsTransportBindingElement(); System.ServiceModel.Channels.HttpsTransportBindingElement httpBindingElement = new System.ServiceModel.Channels.HttpsTransportBindingElement(); httpBindingElement.AllowCookies = true; httpBindingElement.AllowCookies = true; httpBindingElement.MaxBufferSize = int.MaxValue; httpBindingElement.MaxBufferSize = int.MaxValue; httpBindingElement.MaxReceivedMessageSize = int.MaxValue; httpBindingElement.MaxReceivedMessageSize = int.MaxValue; result.Elements.Add(httpBindingElement);结果.Elements.Add(httpBindingElement); return result;返回结果; } throw new System.InvalidOperationException(string.Format("Could not find endpoint with name '{0}'.", endpointConfiguration)); } throw new System.InvalidOperationException(string.Format("找不到名称为'{0}'的端点。", endpointConfiguration)); } }

    "

This error happens also when :在以下情况下也会发生此错误:

targetNamespace<\/code> is wrongly defined in the wsdl or when the ns2 is wrongly defined in the response (different from the ns in the request) . targetNamespace<\/code>在 wsdl 中定义错误或 ns2 在响应中定义错误(与请求中的 ns 不同)。 For example request例如请求

<.. xmlns:des="http://zef/">

i was getting this error in NavitaireProvider while calling BookingCommit service (WCF Service Reference)我在调用 BookingCommit 服务时在 NavitaireProvider 中收到此错误(WCF 服务参考)

so, when we get cached proxy object then it will also retrived old SigninToken which still may not be persisted so that not able to authenticate因此,当我们获得缓存代理 object 时,它还会检索旧的 SigninToken,它可能仍然无法持久化,因此无法进行身份验证

so as a solution i called Logon Service when i get this exception to retrieve new Token因此,作为一种解决方案,当我收到此异常以检索新令牌时,我调用了登录服务

I've got the same error when I've hosted my WCF service in Azure App Service.当我在 Azure App Service 中托管我的 WCF 服务时,我遇到了同样的错误。 In my case, issue was due to accessing http end point of app service having the setting HTTPS Only set to On .在我的例子中,问题是由于访问应用程序服务的端点 http 将设置HTTPS Only设置为On This issue got resolved after setting this value to Off将此值设置为Off后,此问题得到解决

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 响应消息的内容类型 application/xml;charset=utf-8 与绑定的内容类型(text/xml; charset=utf-8)不匹配,WCF - The content type application/xml;charset=utf-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8), WCF 内容类型text / html; charset =响应消息的UTF-8与绑定的内容类型不匹配(text / xml; charset = utf-8) - The content type text/html; charset=UTF-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8) wcf +响应消息的内容类型text / html与绑定的内容类型不匹配(application / soap + xml; charset = utf-8) - wcf + The content type text/html of the response message does not match the content type of the binding (application/soap+xml; charset=utf-8) 内容类型 text/xml; 响应消息的 charset=&quot;utf-8&quot; 与绑定的内容类型不匹配 (text/xml; charset=utf-8) - The content type text/xml; charset=“utf-8” of the response message does not match the content type of the binding (text/xml; charset=utf-8) 响应消息的内容类型文本/纯文本与绑定的内容类型不匹配(文本/ xml; charset = utf-8) - The content type text/plain of the response message does not match the content type of the binding (text/xml; charset=utf-8) 响应消息的内容类型application / xml; charset = utf-8与绑定的内容类型不匹配(text / xml; charset = utf-8) - The content type application/xml;charset=utf-8 of the response message does not match the content type of the binding (text/xml; charset=utf-8) C#ASMX服务抛出内容类型text / html; charset =响应消息的UTF-8与内容类型错误不匹配 - C# ASMX Service throwing The content type text/html; charset=UTF-8 of the response message does not match the content type error WCF http绑定错误:内容类型text / html与绑定的内容类型不匹配(text / xml; charset = utf-8) - WCF http binding error: The content type text/html does not match the content type of the binding (text/xml; charset=utf-8) Wcf 服务,我收到此错误:内容类型 text/html; 字符集=utf-8 - Wcf Service, I'm getting this error: The content type text/html; charset=utf-8 收到错误消息,客户端发现响应内容类型为&#39;text / html; charset = utf-8”,但预期为“ application / soap + xml”? - Getting the error Client found response content type of 'text/html; charset=utf-8', but expected 'application/soap+xml'?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM