Hi All,
I was getting exception while making a call the my WCF service more larger request xml object content length 65708, where it is working without any issues with request xml file content length less than this. This is service we are exposed to external clients and I used SoapUI to debug the service and I am getting the exception HTTP/1.1 400 Bad Request[\r][\n] and not even hitting to the debug point. I goggled a lot and applied the configuration values provided, but none of them helped me to resolve the issue.
After all the config changes, my web.config file is looks like this (only binding part).
<bindings>
<basichttpbinding>
<binding name="GDASHttp" closetimeout="00:10:00" opentimeout="00:10:00" receivetimeout="00:10:00" sendtimeout="00:10:00" bypassproxyonlocal="false" hostnamecomparisonmode="StrongWildcard" maxbuffersize="2147483647" maxbufferpoolsize="2147483647" maxreceivedmessagesize="2147483647" messageencoding="Mtom" textencoding="utf-8" transfermode="Streamed" usedefaultwebproxy="true">
<readerquotas maxdepth="2147483647" maxstringcontentlength="2147483647" maxarraylength="2147483647" maxbytesperread="2147483647" maxnametablecharcount="2147483647" />
<security mode="TransportCredentialOnly">
<transport clientcredentialtype="Windows" />
</security>
</binding>
</basichttpbinding>
I didn't changed any settings in the client file as I can getting the exception from SoapUI and issue is related to server configuration only. I do understand the issue with some the settings is accepting according to the file size, but not sure what is maximum values we can provide in the above settings.
I modified the IIS settings as per some of the Google advises in the server and this is my changed applicationhost.config file.
<location path="Default Web Site/GDAS.FY15R2.3.1/Trusted" overridemode="Allow">
<system.webserver>
<handlers accesspolicy="Read, Execute" />
<security>
<ipsecurity>
<add ipaddress="127.0.0.1" subnetmask="255.255.255.255" allowed="true" />
</ipsecurity>
<requestfiltering>
<requestlimits maxallowedcontentlength="40000000" />
</requestfiltering>
</security>
<serverruntime uploadreadaheadsize="2147483647" />
</system.webserver>
</location>
Is anyone can help me to resolve this issue asap as I am sitting on this issue in the last 3-4 days but none the settings is help me till now. I am greatly appreciated your helps and supports.
Thanks,
Bins