I am getting confused as to which type of of WCF service I should create. The options that Visual Studio gives me are
- Adding a new WCF Service application project to my silverlight solution
- Adding a Silverlight enabled WCF service
- Ajax enabled WCF service
- WCF Data Service
- WCF Service
The last four being WCF services I can add to the web project that acts as host to my silverlight application; typically MySilverlightProject.Web.
So my questions are:
- How do I choose what is the best one. What are the things I should be checking off before I go for one over the other?
- Should I create a separate project that contains all services or just add it to the web project that acts as host to my silverlight application?
- Is there some concise documentation available that can tell me about each of these different types of service creation options. I want to know why we were given so many different choices.
As of now I know I dont want to create a restful service, so lets pull out the WCF Data service from there. From the rest, how do I decide which one to go for? I want it to be secure so I will choose the wsHTTP binding for sure. I also want to send custom headers from the client so that only valid applications can consume the service.