The client sets the WebService call timeout and webservice timeout.

Source: Internet
Author: User

The client sets the WebService call timeout and webservice timeout.

After getting started With WebService, I checked some information on how to set the WebService call timeout time on the client, which is summarized as follows:

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

When referencing a WebService, there are two Reference methods: 1.Add Web Reference 2.Add Service Reference

  • Add Web referenceis the client proxy generated by wsdl.exe. The generated proxy can be called by clients of. net1.1 or. net2.0.
  • Add Service referenceis generated by svcutil.exe as a client proxy. The generated proxy can only be called by clients of. net3.0 +. After adding Service Reference, not only the proxy class is generated, but also the corresponding Tag is generated in web. config.

 

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

1. added Web Reference

You can use this attribute to set the timeout value.

2. Added Service Reference

In app. config, set the timeout according to the above configuration.

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.