开发者

Can we use msmq messaging with wcf data service

开发者 https://www.devze.com 2023-02-27 18:36 出处:网络
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.

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 inter开发者_C百科net i could find links for using with a wcf service only. Please provide some links with a sample.


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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消