Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Member
128 Points
76 Posts
Feb 16, 2012 09:48 AM|LINK
u need to add [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json)] to ur method like this
[OperationContract] [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json)] public string helloworld() { return " hellow world"; }
bakamaru
Member
128 Points
76 Posts
Re: How To retrieve Data In Json Format From WCF
Feb 16, 2012 09:48 AM|LINK
u need to add [WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json)] to ur method like this
[OperationContract]
[WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json)]
public string helloworld()
{
return " hellow world";
}