Hi
with GET I use:
[OperationContract]
[WebInvoke(Method = "GET",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Wrapped,
UriTemplate = "json/{firstn}")]
List<Person> JSONData(string firstn);
and with post i dont know:
Is it correct:
[OperationContract]
[WebInvoke(Method = "POST",
RequestFormat = WebMessageFormat.Json,
ResponseFormat = WebMessageFormat.Json,
UriTemplate = "SaveBook/{id}")]
string SaveBook(Book book, string id);
I read the link:
http://www.topwcftutorials.net/2014/02/post-json-to-wcf-restful-service.html
http://blog.dlwelch.com/?p=390
Go to the complete details ...