I have WCF method
[OperationContract]
[WebInvoke(Method = "POST",
RequestFormat = WebMessageFormat.Json,
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.Wrapped)]
string PostNewOrder(string OrderData);
This is the json string which I am posting
{
"customerId": " ",
"langCode": "SE",
"timeZone": "38",
"orderNumber": "1122519",
"orderDate": "2016-04-13 15:56:36",
"deliveryNumber": "625615",
"devices": "000000001050840;",
"transactionId": "24",
"shipDate": "2016-04-13 16:41:31"
}
But I am getting OrderData as null in the WCF method
If I post string
"{\"customerId\":\" \",\"langCode\":\"SE\",\"timeZone\":\"38\",\"orderNumber\":\"1122519\",\"orderDate\":\"2016-04-13 15:56:36\",\"deliveryNumber\":\"625615\",\"devices\":\"000000001050840;\",\"transactionId\":\"24\",\"shipDate\":\"2016-04-13 16:41:31\"}"
It works fine but this is not a proper json , Thanks in Advance..