我有一個客戶端應用程序刪除郵件到名爲MsmqService/MsmqService.svc專用隊列拿起消息。WCF服務不是從本地隊列
在IIS默認Web站點下,我與net.msmq結合添加的WCF服務。
我確信隊列設置於事務
以下是對客戶端應用程序和WCF都相關的配置部分。
<system.serviceModel>
<bindings>
<netMsmqBinding>
<binding name="MsmqBindingNonTransactionalNoSecurity" exactlyOnce="false">
<security mode="None"/>
</binding>
<binding name="MsmqBindingNonTransactionalTransportSecurity" exactlyOnce="false">
<security mode="Transport"/>
</binding>
<binding name="MsmqBindingTransactionalTransportSecurity" exactlyOnce="true" receiveErrorHandling="Move">
<security mode="Transport"/>
</binding>
</netMsmqBinding>
</bindings>
<services>
<service name="MsmqService.MsmqService">
<endpoint address="net.msmq://localhost/private/MsmqService/MsmqService.svc" binding="netMsmqBinding"
bindingConfiguration="MsmqBindingTransactionalTransportSecurity" contract="MsmqContract.IMsmqContract"/>
</service>
</services>
</system.serviceModel>
我不得不下默認Web站點啓用的協議和下WCF服務
是啊,我很容易能夠得到我的要求工作的一個窗口服務版本MSMQ WCF實現一步步的指導。 如果可能,我想讓IIS版本也能正常工作。原因是我的主管認爲使用Windows服務是一種舊式,它要求客戶端和服務都實際讀取和寫入隊列。而在IIS的風格,這一切都是在引擎蓋下,它看起來像客戶端進行一次普通的WCF調用,而背景中的Windows進程激活服務會調用WCF服務的適當的方法代表客戶 – user1751503
的你如何喚醒員工流程?我試過在IIS管理器中選擇瀏覽svc文件,但沒有區別。 或者是否有可能做一個傳統的wcf風格的方法調用在Windows服務INSTEAD只是有一個多用途偵聽器,它偵聽消息,並根據消息決定調用什麼方法 – user1751503
好的抱歉,豎琴在同一點,但你是說在這種情況下使用IIS是兩個方法中的較小者還是不值得麻煩? – user1751503