0
我有WCF服務和Silverlight客戶端。我使用PollingDuplexElement。例外:內容類型應用程序/ mspd1被髮送到期待應用程序的服務/ soap + msbin1
在服務器端,我有以下配置。
<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被送到服務期望的應用程序/肥皂+ msbin1。客戶端和服務綁定可能不匹配。
還應該配置什麼。 我花了很多時間,但找不到答案。
它會殺了你發佈確切的步驟和客戶端配置? – 2015-03-03 16:43:41
@BoppityBop我無法再訪問該代碼。我很遺憾,我沒有附上工作樣本和關於我的解決方案的更多細節。 – Artiom 2015-03-03 21:14:48