The method call is successful without Request body. When I use below Request body, I get HTTP/1.1 400 Bad Request. Do you see any obvious problem with below requst body?
Request Body
{
"_userConfigData":{"UserName":"bXZpbmphbXVyaQ==", "FirstName":"User1", "LastName":"Last1", "ContactInfo":"None" },
"_configResult": "Miscellaneous"
}
Request Headers
User-Agent: Fiddler
Content-Type: application/json
Host: localhost:1706
Content-Length: 167
Here is the server side method:
[OperationContract]
[WebInvoke(UriTemplate = "UpdateUserDetails/?_clientIP={_clientIP}&AdminName={AdminName}", Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Wrapped)]
public void UpdateUserDetails(UserConfigData _userConfigData, ConfigResult _configResult, string _clientIP, string AdminName)
{
//
}
Here is the URL that I use with Fiddler2:
Thanks,
I was able to get your code to work, but I had to make some modifications.
Anyway, here is the updated model objects with your data:
The server side method:
The json that you pass in:
UPDATE:

Fiddler request screen shot:
And the request gets to the server UpdateUserDetails() Handler:
