简体   繁体   English

例外:内容类型application / mspd1已发送到需要application / soap + msbin1的服务

[英]Exception: Content Type application/mspd1 was sent to a service expecting application/soap+msbin1

I have WCF service and Silverlight Client. 我有WCF服务和Silverlight客户端。 I use PollingDuplexElement. 我使用PollingDuplexElement。

On server side I have following configuration. 在服务器端,我有以下配置。

<binding name="DuplexmergencyRegistratorBinding">
   <binaryMessageEncoding/>
   <pollingDuplex maxPendingSessions="2147483647" maxPendingMessagesPerSession="2147483647" inactivityTimeout="02:00:00" serverPollTimeout="00:05:00"/>
   <httpTransport authenticationScheme="Negotiate"/>
 </binding>

on Client: 在客户端上:

<binding name="BasicHttpBinding_IEmergencyRegistrator">
  <binaryMessageEncoding/>
  <pollingDuplex duplexMode="MultipleMessagesPerPoll" inactivityTimeout="02:00:00" clientPollTimeout="00:05:00"/>      
  <httpTransport transferMode="StreamedResponse"/>
</binding>   

I get following error: Content Type application/mspd1 was sent to a service expecting application/soap+msbin1. 我收到以下错误: 内容类型application / mspd1已发送到期望应用程序/ soap + msbin1的服务。 The client and service bindings may be mismatched. 客户端和服务绑定可能不匹配。

What else should be configured. 还有什么应该配置。 I spent a lot of time but couldn't find the answer. 我花了很多时间,但找不到答案。

最后,我删除了客户端配置,并从代码中配置了ServiceClient。

暂无
暂无

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

相关问题 SOAP UI / SOAP UI PRO 中的内容类型应用程序/soap+msbin1 - Content-Type application/soap+msbin1 in SOAP UI / SOAP UI PRO 由于异常&#39;application / soap + xml,因此无法处理消息; 不是预期的类型&#39;application / soap + msbin1&#39; - Cannot process the message because of the exception 'application/soap+xml; was not the expected type 'application/soap+msbin1' 由于内容类型“ application / soap + msbin1”不是预期的类型“ text / xml”,因此无法处理该消息 - Cannot process the message because the content type 'application/soap+msbin1' was not the expected type 'text/xml 在Jmeter中处理soap + msbin1内容类型 - Handling soap+msbin1 content type in Jmeter 编码和解码内容类型'application / soap + msbin1',以便与C#.NET中的HttpWebRequest / HttpWebResponse一起使用 - Encode and Decode content-type 'application/soap+msbin1' for use with HttpWebRequest/HttpWebResponse in C#.NET SILVERLIGHT WCF问题:内容类型application / soap + xml; charset = utf-8已发送到需要text / xml的服务; - SILVERLIGHT WCF Issue: Content Type application/soap+xml; charset=utf-8 was sent to a service expecting text/xml; 期望SOAP 1.1内容类型的WCF SOAP 1.2服务 - WCF SOAP 1.2 service expecting SOAP 1.1 content type WCF客户端与Java WS交谈,异常:内容类型application / xop + xml;响应消息的type =“application / soap + xml” - WCF client talking to Java WS, exception: The content type application/xop+xml; type=“application/soap+xml” of the response message 内容类型应用程序/soap+xml; 服务不支持 charset=utf-8 - Content Type application/soap+xml; charset=utf-8 was not supported by service Silverlight + WCF异常:期待application / soap + xml,收到text / xml - Silverlight+WCF exception: Expecting application/soap+xml, received text/xml
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM