Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
Now is the time to ask your NetSuite-savvy friends and colleagues to join the NetSuite Support Community! Refer now! Click here to watch and learn more!
Catching a timeout exception
How exactly do I catch a session connection timed out exception in my .net web service?
My web service app logs in then every so often will need to do a search. The problem is the session will time out (the documentation says after 15 minutes but it seems to take about 30 for me) so the search will fail if there hasn't been any activity for a while. I want to catch that the connection has timed out and re-login the web service before doing the search.
I have the following C# code to catch the exception:
catch( System.Web.Services.Protocols.SoapException e)
0