Problem:
Sometimes while calling WCF (.NET WCF or BizTalk schema/orchestration exposed as WCF service) service with hudge / large receives below error.
"java.net.socketException:connection reset by peer:socket write error"
It usually happens when sending attachment (base64 format) with SOAP request.
Root Cause :
Web-service which is hosted on Web-Server (IIS) couldn't handle large message.
Solution:
Need to configure the HTTP Runtime to accept large messages1. Go to IIS
2. Open the web.config or corresponding web-service.
3. Put below entries.
<
system.web
>
<
httpRuntime
maxRequestLength
=
"2097151"
/>
</
system.web
>
Note: maxRequestLength value should be as per your need and below the max limit.
No comments:
Post a Comment