我们可以在WCF数据服务中使用msmq消息传递吗 [英] Can we use msmq messaging with wcf data service
问题描述
我有一个Wcf数据服务,用于公开Ado.net实体框架中的实体.我想知道是否可以在数据服务中使用msmq消息传递. 在互联网上搜索后,我只能找到仅与wcf服务一起使用的链接. 请提供一些示例链接.
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.
推荐答案
不,你不能.
WCF数据服务仅使用HTTP/REST -不能在任何其他协议或任何其他绑定上使用.
WCF Data Services is using HTTP/REST only - it cannot be used over any other protocol or with any other binding.
仅当您使用使用SOAP协议进行通信的常规" WCF服务时,MSMQ才可用-该服务可以在不同的传输介质上进行路由.
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仅与HTTP紧密紧密地联系在一起.
REST is very tightly and intimately tied to HTTP only.
这篇关于我们可以在WCF数据服务中使用msmq消息传递吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!