Can we use msmq messaging with wcf data service

非 Y 不嫁゛ 提交于 2019-12-24 06:49:44

问题


I have a Wcf Data service exposing entities from Ado.net entity framework. I would like to know whethere I can use msmq messaging with my data service. After searching on internet i could find links for using with a wcf service only. Please provide some links with a sample.


回答1:


No you cannot.

WCF Data Services is using HTTP/REST only - it cannot be used over any other protocol or with any other binding.

MSMQ is only available when you use "regular" WCF services that use the SOAP protocol for communication - that can be routed over different transport media.

REST is very tightly and intimately tied to HTTP only.




回答2:


WCF supports MSMQ as a transport protocol and provides the standard MSMQ binding. Here is a link to MSDN article devoted to using MSMQ in a WCF application:

How to: Exchange Messages with WCF Endpoints and Message Queuing Applications



来源:https://stackoverflow.com/questions/5754502/can-we-use-msmq-messaging-with-wcf-data-service

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!