Search code examples
asp.net.netwcfweb-services

Should I use WCF or ASP.NET to write webservice?


I want to write webservice on .NET (my Client can be Android, iOS, Mac OS, Website...). My question is that I should use WCF or ASP.NET to do this?


Solution

  • I assume you mean ASP.net Web Apis when you mention ASP.net. There is also ASP.net soap services but those won't be ideal to work with on platforms such as android or iOS.

    If you are unsure about what the different web services are, you will most likely want to use ASP.net Web APIs as these are easy to set up and offer multiple content types, XML, JSON, possibly more...

    WCF is more built for web services however it has a steep learning curve, which is why I say if you're unsure about what you want, you most likely aren't making something which will require WCF.

    For more information I suggest reading: http://idesign.net/articles/asp_net_web_api_vs_wcf.htm