Используя Fiddler, я отправляю сообщение JSON в свой сервис WCF.Служба использует System.ServiceModel.Activation.WebServiceHostFactory
[OperationContract]
[WebInvoke
(UriTemplate = "/authenticate",
Method = "POST",
ResponseFormat = WebMessageFormat.Json,
BodyStyle = WebMessageBodyStyle.WrappedRequest
)]
String Authorise(String usernamePasswordJson);
Когда выполняется POST, я могу взломать код, но параметр usernamePasswordJson равен null .Почему это так?
Примечание: Странно, когда я устанавливаю BodyStyle на Голый , пост даже не доходит до кода, который я могу отлаживать.
Вот экран Fiddler: 