Hi sir,
One interviewer asked me, In Webservice, what is the maximum size of data can be sent through webservice. Kindly give me the solution for this problem.
What is maximum size of data can sent through webservice?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Sunny SharmaRank #223 · 11.1K pointsPosted Jun 18, 2014, 1:24 AM EDT
Prabhu,
It depends on the configuration of the web service that you create.
Here's the piece of code in web.config file responsible for size factor:
<configuration>
<system.web>
<httpRuntime maxMessageLength="409600"
executionTimeoutInSeconds="300"/>
</system.web>
</configuration>
You can also set the maxMessageLength to "-1" to allow the maximum possible size.
Please refer to these posts:
http://msdn.microsoft.com/en-us/library/aa528822.aspx
http://blogs.msdn.com/b/drnick/archive/2006/03/16/maximum-size-of-a-soap-message.aspx
Happy learning :)