Since REST services do not require XML, but we can use it with XML so can I call it a XML web service?
I’m doing my home work with the requirement that:
- Using ASP.NET MVC
- Provide an XML Web service
I was thinking about SOAP, but REST is more simple for me and I found alot of tut for REST with ASP.NET MVC rather than SOAP (They now all telling me about WCF…)
If REST is not an XML web service, please show some basic document about SOAP (or any thing else that call XML web service) with ASP.NET MVC!
Take a look at WCF Web Api. REST does not imply any particular format. A good REST service will allow you to set the Accept Header: json, xml, so on. E.g.: “accept” : “application/json”
Here is a good post on how to achieve this with WCF Web Api.