I have WCF service with Bindings maxReceivedMessageSize set to 2000000 and ReaderQuota's maxStringContentLength set to 128000
Client which is using this wcf service unable to send string of length 200K (400000 bytes), it throws following error.
The remote server returned an unexpected response: (400) Bad Request. ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.
at System.Net.HttpWebRequest.GetResponse()
at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
--- End of inner exception stack trace ---
Should I increase the maxStringContentLength property to greater than 400000 to successfuly received by service?