Last post Sep 13, 2013 03:36 AM by Gangadhar510
Oct 29, 2010 11:35 PM|MrCricket|LINK
Hi, I created a WCF REST service which had a method "Result":
public interface IService
[OperationContract(Name = "Result")]
[WebGet(UriTemplate = "/")]
When I went to the default page
http://localhost:portnumber/Service.svc it would display the string returned by Result().
I then wanted to host the WCF service in a Windows Service. The service is running fine and I can browse to the baseAddress. However in this setup it displays the default "You have created a service" page and doesn't execute the method returning the string.
I'm not even sure if this is possible. In summary is it possible to how a WCF REST service in a Windows Service and get it to respond to HTTP GET requests?
Can anybody suggest a solution?
"WCF" "Windows Services" "REST"
Nov 01, 2010 11:20 PM|MrCricket|LINK
No worries, I have the answer now!
Nov 03, 2010 11:40 AM|Jawahar Kaliraj|LINK
Please let me know the answer.
Sep 13, 2013 03:36 AM|Gangadhar510|LINK
I am also having the same problem. Can you please post how you solved this.