New Message on dotNET User Group Hyd

VJs Tip Of The Day

Reply
  Reply to Sender   Recommend Message 52 in Discussion
From: VishalRJoshi

Setting Timeouts for Web Services

If your web service takes a long time to finish its expected task and you
wish to increase the timeout values for your web services following are few
things you should look at:

Make sure that you set the desired timeout for your script. You can do that
in your web service by Server.ScriptTimeout = 2000 * 60 //(your value)

Also do note that the timeout for the proxy consuming the web service should
also be modified and should be made more than that the timeout of your web
service itself.
There is a timeout property created for the proxy class generated by WSDL
tool you would have to set this property before you call your web service.

eg MyProxyClass objMyProxy = new MyProxyClass()
objMyProxy.Timeout = 5000 * 60 //(note the value is more than the web
// service timeout)
objMyProxy.MyWebMethod("take your time")

Vishal Joshi
Microsoft MVP .Net
If You Think YOU CAN... You Can...
http://VishalJoshi.Blogspot.com
http://www.microsoft.com/india/mvp/indiamvp.aspx
http://groups.msn.com/ChennaiNetUserGroup
http://groups.msn.com/CNUG-DAM
http://groups.msn.com/NetBloomingtonUserGroup

PS: At times I might not be able to reply to all the queries that you post
to me... Believe me I keep them unread and will get back to them at the
earliest leisure... I apologize for the inconvenience...


View other groups in this category.

Click Here!
Also on MSN:
Start Chatting | Listen to Music | House & Home | Try Online Dating | Daily Horoscopes

To stop getting this e-mail, or change how often it arrives, go to your E-mail Settings.

Need help? If you've forgotten your password, please go to Passport Member Services.
For other questions or feedback, go to our Contact Us page.

If you do not want to receive future e-mail from this MSN group, or if you received this message by mistake, please click the "Remove" link below. On the pre-addressed e-mail message that opens, simply click "Send". Your e-mail address will be deleted from this group's mailing list.
Remove my e-mail address from dotNET User Group Hyd.

Reply via email to