![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I am consuming a XML web service from an ASP.Net 2.0 application. The The ASP.Net application does not interact with the database directly. The XML web service interacts with the database. I have set breakpoints in my WebForm and my XML web service. Now I start debugging from the ASP.Net application and at a later point I enter into the XML web service for debugging. After I have spent some time in debugging the web services I get an error "Operation time out". This error comes only while debuging the XML web services. How to resolve this issue. Should you require any further information please do not hesitate to contact me. Thanks in advance. Regards, Sriram Mallajyosula |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
Hi, To avoid this problem, set the timeout value for the call to the XML Web service to infinite, as shown in this example: Service1 obj = new Service1(); obj.TimeOut = -1; // infinite time out. references :http://msdn2.microsoft.com/en-us/lib...t2(VS.80).aspx -- Thanks and Regards. Manish Bafna. MCP and MCTS. "Sriram Mallajyosula" wrote: Hi, I am consuming a XML web service from an ASP.Net 2.0 application. The The ASP.Net application does not interact with the database directly. The XML web service interacts with the database. I have set breakpoints in my WebForm and my XML web service. Now I start debugging from the ASP.Net application and at a later point I enter into the XML web service for debugging. After I have spent some time in debugging the web services I get an error "Operation time out". This error comes only while debuging the XML web services. How to resolve this issue. Should you require any further information please do not hesitate to contact me. Thanks in advance. Regards, Sriram Mallajyosula |
#5
| |||
| |||
|
#6
| |||
| |||
|
|
Hello Manish, If you have many front applications that will use this consume the webservice(through generated proxy), you can consider move the webservice proxy out of those front applications and put it into a separate class library project. Thus, another front applications can simply reference the class library project and use the shared webservice proxy. And for this shared webservice proxy, you can do some customization on it, such as provide a customized constructor which do some additional specific initialization( e.g. set the Timeout period)... Sincerely, Steven Cheng Microsoft MSDN Online Support Lead This posting is provided "AS IS" with no warranties, and confers no rights. |
#7
| |||
| |||
|
#8
| |||
| |||
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |