Web service call timeout

Source: Internet
Author: User

Solution:

============

-We need to increase the timeout setting of the Web Service proxy class before making the call to the web service.

Example:

 
Localhost. service1 Ws = new localhost. service1 (); ws. Timeout = 300000; ws. helloworld ();

The timeout is set in milliseconds for Synchronous callto the XML Web Service. the default is 100000 milliseconds. setting the timeout property to timeout. infinite indicates that the request does not time out; however, the web server can still cause the request to time out on the server side.

Note:

======

-In these kind of scenarios we also need to increaseMaxrequestlengthIn the Web. config file for the WebService to match the size of the Upload File.

-also we need to make sure to set the maxconnection setting in the config file for the Windows Service/application to appropriate number depending on the way requests are made to the WebService.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.