I want to port an existing ASP.NET Web Service to WCF so the resulting Web Service (1) is RESTful, (2) uses JSON as its request/response format, (3) has a custom authentication mechanism.
After a lot of googling, random coding, and wanting to hit my head against the wall, I found that...
A
webHttpBindinghas to be used to make the Web Service RESTful. But...webHttpBindingdoes not support HTTPS hosts.webHttpBindingdoes not support UserName authentication.webHttpBindingdoes not even support message security.
An endpoint behavior with
<enableWebScript/>has to be used to support ASP.NET AJAX. But...What is "ASP.NET" AJAX?
What if I want to consume the Web Service using "regular" AJAX?
And, most importantly...
Can WCF do what I want to do in first place?
If not, what other platforms could I use?