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.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Sunny SharmaPosted Jun 18, 2014, 5:24 AM
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:
executionTimeoutInSeconds="300"/>
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 :)