I’m trying to add a service reference to a RESTful WCF service in Visual Studio 2010.
Actually, Visual Studio 2010 doesn’t discover any service in my solution.
My question is: is this possible using RESTful WCF services?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Are you using the online WCF RESTful Service template to create your RESTful WCF service? This template uses a .cs file instead of a .svc + .svc.cs file. Which seems to make the “Discover Services In Solution” break (Does work against .svc + .asmx services however). A possible work around would be to implement it in the form of .svc + .svc.cs.
I’ve just tested this locally by creating a service using the RESTful template, adding a “WCF Service” using the add new file menu and moving the code from “Service1.cs” in there, and modifying the route table in Global.asax.cs to