I have this code inside my WCF Interface:
[OperationContract]
[WebGet(UriTemplate = "/GetData/", ResponseFormat = WebMessageFormat.Json)]
string GetData();
And this inside my Service page:
public string GetData()
{
return "Please help";
}
I want to get the value of GetData function when I call it in url:
http://localhost: 12345/Services/MyWCF.svc/GetData/
After entering this url, I should be able to download the result inside the notepad due to JSON format. I'm not sure what went wrong with my WCF.
Please help!
Please let me know if I haven't make my question clear.
Thanks in advance.