Can I add RESTful WCF services through the "Add Service Link"?

Once upon a time, in a distant world, we used to add links to web services to projects, simply by right-clicking on the project "Links" node and clicking on "Add service link". I used to be able to do this with .asmx services and the traditional WCF service.

When I follow the various online instructions on “creating my WCF RESTful”, can I also lose the ability to “Add a service link” to these WCF services? Can I add WCF-based REST services this way?

If I use Web API 2, can I add a link to the service?

Suppose I use the last of everything - VS2015, etc.

+6
source share
1 answer

When I follow the various online instructions on “creating my WCF RESTful”, can I also lose the ability to “Add a service link” to these WCF services? Can I add WCF-based REST services this way?

View. You can add a REST MEX endpoint, but I don't think you can use it to create a service proxy. Although, I think the best question may be, why do you want? Web APIs are the best way to REST.

If I use Web API 2, can I add a link to the service?

No. The Web API does not have any metadata features such as WCF.

+3
source

All Articles