I was just wondering are asmx files compatible with REST style requests?
I have some asmx files which need to service some third-party programs which are setup to send REST requests, not SOAP.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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.