Hello,
How do I access this WCF function through the browser and view the JSON code...
[OperationContract]
[WebInvoke(Method="POST",BodyStyle=WebMessageBodyStyle.Wrapped,ResponseFormat=WebMessageFormat.Json)]
string GetData(int value);
Here's the code in my service...its just a sample function...
public class Service1 : IService1
{
public string GetData(int value)
{
return string.Format("You entered: {0}", value);
}
I tried pasting this url "http://localhost:25521/Service1.svc/GetData/1" on my browser but,it doesn't seem to execute the function.How do I execute this and test it on the browser to see the JSON stuff?
Thanks