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.