I am considering using ASP.Net MVC as a platform for a REST-based service. I know that WCF supports support for REST services; however, I am looking at the return of several data types depending on the request.
I would like the client to request the type of content. Therefore, if they send text / html, for example, I would turn my model into Html, if they request text / xml, it will return xml. We could also do JSON.
Anyone see any problems with this?
Not using WCF can increase the complexity of the client when calling the service, because they will not be able to automatically generate proxies; however, in my case, the clients will be either a browser requesting html or java client libraries that process xml.
Since we did not use WCF, we need to provide service; however, I think we can do this using forms-based authentication.
The advantage of this is that no matter what type of data the client requests, everyone goes through the same controllers / models, etc.
source
share