I have a json string which needs to be accepted by WCF Post method.I have used class to accept the request and is working fine. But I want to accept the request dynamically without using class. Can I use string, Jobject or any other data type to accept the same?
my post method. I am getting null value when using stream and string
[OperationContract(Name = "PostResponse")]
[WebInvoke(Method = "POST", BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "PostJsonResponse?Plugin={plugin}&Action={action}", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json)]
Stream PostJsonResponse(String plugin, String action, Stream jsonStr);
Json String. We want to bind below json data to jsonStr (Parameter) in Post method
{"short_description":"BF INC 008489","description":"","u_issue":"Paper Jam","business_service":"Printer and Copier Devices","impact":"3","urgency":"3"}