简体   繁体   中英

WCF HTTP Activation using Srmp TransferProtocol

I've got a windows service calling a WCF web service using netMsmqBinding with the queueTransferProtocol set to Srmp.

All of this works great, except for when the application pool hosting the web service gets restarted or recycled.

The only way to get messages to send is by manually browsing to the URL, or using some http ping utility. Once the URL is activated the WCF web service starts to consume the incoming queue.

I had this problem before switching to Srmp, and I resolved it by installing the WCF Activation feature on the web server and naming the queue appropriately.

I've been forced to use Srmp due to firewall restrictions so port 80 or 443 are my only options.

There is a workaround here where I could set up a scheduled task to call each web service on schedule, but I would prefer a simpler more robust solution.

A full solution would be really nice, but I'm open to considering some other workarounds.

OK found the solution to this and was sure that I tried it before.

Install AppFabric 1.1 and set the web service application to auto start.

This resolved the problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM