Web Service - Data Size Issue

 

 I had a BizTalk Web Service which is running for more than a year without any issues. Users are calling the Web Service from an Excel applicaiton to upload the list of items everyday, Suddenly yesterday when user tries to upload more than 20,000 line items we started getting an error “There was an exception running the extensions specified in the config file, ---> Maximum request length exceeded“.

First I thought there was no size limit in a SOAP message. Then I figured out you need to increase the request limit in the Web.Config or machine.Config on the server.

 

There is the maxRequestLength attribute in the httpRunTime element in the

machine.config file. By default its 4MB if you feel you might expect data more than 4MB then you can increase the size as accordingly Ex:- 8000KB

 

Web.Config of the Web Service

 

<configuration>
  <system.web>
  ...
  <httpRuntime maxRequestLength="8000"></httpRuntime> <!- Add this line ->
 </system.web>
</configuration>   

 

 Or change the maxRequestLength attribute in the httpRuntime in machine.config from default 4096 to 8000


 

Print | posted on Wednesday, February 1, 2006 7:21 AM

Feedback

# re: Web Service - Data Size Issue

Left by Jerry Nixon at 2/23/2007 5:27 PM
Gravatar Nope, that didn't work for my case.
But thanks.

# re: Web Service - Data Size Issue

Left by ganesh shankar dixit at 12/19/2008 8:01 AM
Gravatar when large amount of data coming from webservice response then i find this error:
"Response is not well-formed XML"
what is the solution
thanks

# re: Web Service - Data Size Issue

Left by Manoj at 7/14/2011 1:28 AM
Gravatar Thanks for the article.
Can you help me in providing the below information?

I need to know the maximum amount of data can a web service can handle?

I have some 40,000, and that will be keep on increasing, there is no limit for the number of records. But can a web service can handle this huge amount of data to return?

Do you have any limits in numbers that will help me?

Many Thanks for your reply.

Your comment:





 

Copyright © Suresh Girirajan

Design by Bartosz Brzezinski

Design by Phil Haack Based On A Design By Bartosz Brzezinski