Reputation: 5402
Long time ago, in a world far far away, we used to be able to add web service references to projects simply by right-clicking on the project's References node, and clicking "Add Service Reference". I used to be able to do this with .asmx services, and traditional WCF service.
When I follow different online instructions on "making my WCF RESTful", do I also lose the ability to "Add Service Reference" to those WCF services? Can WCF based REST services be added this way?
If I use Web API 2, can I "Add Service Reference"?
Assume I'm using the latest of everything - VS2015, etc.
Upvotes: 8
Views: 7880
Reputation: 1509
When I follow different online instructions on "making my WCF RESTful", do I also lose the ability to "Add Service Reference" to those WCF services? Can WCF based REST services be added this way?
Kind of. You can add a REST MEX endpoint, but I don't think you can use that to generate a service proxy. Though, I think a better question might be, why would you want to? Web API is the best way to go for REST.
If I use Web API 2, can I "Add Service Reference"?
No. Web API doesn't have any type of metadata functionality like WCF.
Upvotes: 3