Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3785296
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T11:30:25+00:00 2026-05-19T11:30:25+00:00

I have access a lists.asmx on a SharePoint farm which I normally access to

  • 0

I have access a lists.asmx on a SharePoint farm which I normally access to update the list items. Lists.asmx perfectly authenticate my client during the day time but fails during night time (due to system maintenance). I want to ensure that my client keep trying to connect to the service (say upto 1 hour). what options would you like to suggest here? Do we have something available out of the box here, or I will have to write my own code at the client side? What should the design of the class look like if I will have to write my own retry code at client side?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T11:30:26+00:00Added an answer on May 19, 2026 at 11:30 am

    An out of the box solution is the Timeout value of the webservice. I handle SharePoint webservice errors on the server side with a Try/Catch block and either silently abort or report an error to the user after a second attempt. For instance, if you had a function to get the List GUID from the display name you would use (in VB) . . .

       Dim ws As New SPLists.Lists()
        Try
           ws.Credentials = GetCredentials()
           ws.Timeout = 60000  '1 minute timout
           doc = XDocument.Parse(ws.GetListCollection().OuterXml)
           SPGetListID = (From x In doc.Elements.First.Elements _
                          Where x.Attribute("Title").Value.Equals(ListName) _
                          Select x.Attribute("ID").Value).FirstOrDefault
        Catch timeout As TimeoutException
          ws.Abort()
        Catch other As Exception
          ws.Abort()  'or use a timing loop to call this function again
        End Try
    

    . . . where a request timeout cancels the request. If the webservice returns another error in your case, it can be handled in the Catch Other section.

    I wouldn’t just set the ws.Timeout value to 3600000 because the web server will most likely be set to force a timeout before the hour is up. Instead, you could use a timing loop in the Catch block (or in the code that calls this function) and make the webservice call again at set intervals. Within that code you would want to limit the number of calls to the webservice routine to avoid an infinite loop.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have access to a sharepoint list like so: SPList countries = site.RootWeb.Lists[Countries]; the
CGI scripts should have access to a list of environment variables set by the
I'm trying to access list data using SSRS 2008. I have created an XML
I have some problems on a site with the concurrent access to a list.
I have a List in the main application and I am trying to access
I have a list of the user's images displayed, (who has already allowed access
I have Access table with fields, in which there is some data and path
I have the following web-service which works perfectly as long as it is accessed
I'm calling a SharePoint Web Service (Webs.asmx) with JQuery to get a list of
I have access to an Oracle server that has some databases that I would

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.