trying to POST json dictionary to C# WCF, when i invoke it HTTP Response 415. Someone can tell me whats wrong with my code.
object Class
[DataContra
The endpoint for your service is not properly configured to receive JSON input. In order for the [WebInvoke] attribute to be honored, your endpoint needs to have the webHttpBinding, and it should also have an endpoint behavior of type
One easy way to ensure that it's properly configured is to use the Factory attribute on the .svc file. Something like the example below:
<%@ ServiceHost Language="C#" Debug="true"
Service="YourNamespace.YourServiceClass"
Factory="System.ServiceModel.Activation.WebServiceHostFactory" %>