Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are asmx webservices compatible with REST?

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.

like image 733
chobo Avatar asked Apr 19 '11 16:04

chobo


People also ask

Is Asmx still supported?

Yes, you can use ASMX in .

What is the difference between WCF and ASMX Web services?

5) The purpose of ASMX services is to send and receive data using SOAP over HTTP protocol. However, WCF services can send and receive data using any format over different protocols like HTTP, HTTPS, TCP, MSMQ etc.

What is the difference between Asmx and SVC?

When web developers talk about . asmx, they know that it is something not too complicated – it can be configured easily. The downside is, it is only callable from HTTP, while . svc is used with HTTP, MSMQ, and can be hosted through different platforms such as the Winforms application.

What is Asmx file web service?

ASMX provides the ability to build web services that send messages using the Simple Object Access Protocol (SOAP). SOAP is a platform-independent and language-independent protocol for building and accessing web services.


1 Answers

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.

like image 76
John Saunders Avatar answered Sep 23 '22 20:09

John Saunders