I have a WCF service implemented using the WebServiceHostFactory (REST).
I'm calling a service end point as a POST sending a json object that has a string property.
This works up to a point but it seems that if the length of that string gets too long (not sure exactly how long (8000 chars works but 9000 does not ... I did not try but 'breaking point' might be 8192).
I attempt to check the StatusCode in the call back which works fine for smaller strings but when the sting is 'too long' the code below errors with:
System.Net.WebException: The remote server returned an error: NotFound.
Callback code:
var request = (HttpWebRequest)result.AsyncState;
var response = (HttpWebResponse)request.EndGetResponse(result);
I'm trying to figure out where the problem is, since the service exists and I only get this when the string is too long.
Is it the json object size? Is it my service definition? Is this something in WCF?
Thanks