Are asmx webservices compatible with REST? Are asmx webservices compatible with REST? asp.net asp.net

Are asmx webservices compatible with REST?


First of all, you should not be using ASMX for new service development: you should use WCF instead. It's much easier with WCF to have the same service handle both SOAP and REST-style endpoints.

The closest that an ASMX service will get to REST is that it can be configured to permit a GET or POST request, in which case it will return plain XML, with no SOAP envelope.

See Configuration Options.

But if you're trying to get "true REST" from ASMX, then you're out of luck.