Your web service definition looks correct. Make sure you call the service through the message and remember that the key indicates the header of the content type as application/json .
(This uses jQuery, but you can use low level javascript if you want)
$.ajax({ type: "POST", contentType: "application/json; charset=utf-8;", url: "http://MyWebServiceURL", data: JSON.stringify({ ParameterName: "DataToSend" }), dataType: "json", success: function (data, textStatus, jqXHR) {
Maxim Gershkovich
source share