[英]Content-Type application/soap+msbin1 in SOAP UI / SOAP UI PRO
[英]Exception: Content Type application/mspd1 was sent to a service expecting application/soap+msbin1
我有WCF服务和Silverlight客户端。 我使用PollingDuplexElement。
在服务器端,我有以下配置。
<binding name="DuplexmergencyRegistratorBinding">
<binaryMessageEncoding/>
<pollingDuplex maxPendingSessions="2147483647" maxPendingMessagesPerSession="2147483647" inactivityTimeout="02:00:00" serverPollTimeout="00:05:00"/>
<httpTransport authenticationScheme="Negotiate"/>
</binding>
在客户端上:
<binding name="BasicHttpBinding_IEmergencyRegistrator">
<binaryMessageEncoding/>
<pollingDuplex duplexMode="MultipleMessagesPerPoll" inactivityTimeout="02:00:00" clientPollTimeout="00:05:00"/>
<httpTransport transferMode="StreamedResponse"/>
</binding>
我收到以下错误: 内容类型application / mspd1已发送到期望应用程序/ soap + msbin1的服务。 客户端和服务绑定可能不匹配。
还有什么应该配置。 我花了很多时间,但找不到答案。
最后,我删除了客户端配置,并从代码中配置了ServiceClient。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.