Hi,
My REST WCF Service defined a ServiceHostFactory and returns a ServiceHost of WebServiceHost2 instance. In this case, If I want to specify ReaderQuotas.MaxStringContentLength to be a bigger value like 65536, the service wont perform correctly.
How do I set this value in code?
protected override ServiceHost CreateServiceHost(Type serviceType, Uri[] baseAddresses)
{
var host = new WebServiceHost2(serviceType, true, baseAddresses[0]);
host.MaxMessageSize = 2147483647;
//Something here???????????
return host;
} ...
Go to the complete details ...