I created a REST service using WCF. It has 2 operations; one has [WebGet] applied on it and works fine both on localhost and on my production server.
But, the other operation that has the following attribute applied on it works only localhost not on production server. Can anybody tell me what could be wrong here ?
The attribute in question is ..
[WebInvoke(Method = "POST",
BodyStyle = WebMessageBodyStyle.Wrapped,
ResponseFormat = WebMessageFormat.Json,
RequestFormat = WebMessageFormat.Json,
UriTemplate = "CreateUser")]
The error that I am getting is bad request (400). The JSON request sent is the same for both localhost and prod server. It also has content type set to application/json.
Thanks, Ramki.