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

  • Home
  • SEARCH
  • 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 3593668
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T19:36:27+00:00 2026-05-18T19:36:27+00:00

I am currently working on a business application that needs to check for the

  • 0

I am currently working on a business application that needs to check for the latest XML report that is available. The report is normally published at a fixed day every week however this may change due to updates. The XML report has a fixed URL with two changing parameters, year and month.

I have a working logic that uses the current date and extract the year and weeknumber and use this as parameters in the URL. Then I instantiate a NSXMLParser object with the URL and checks whether or not the NSXMLParser throws an error. If it does throw and error the current week is subtracted by 1 because the report is published in the middle of the week so it retries with the url but now with weeknumber – 1.

I know this is fairly bad way of doing it however at the moment a push service which probaly would be a much better way of doing this is not an option in the first version.

So my question is if the approach already done in my app is an OK way of doing it in the first version? Or is a better way to check if a resource on a webserver is available, and if it is not retry in a loop with weeknumber – 1 in the URL path.

Thanks in advance!

  • 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-18T19:36:27+00:00Added an answer on May 18, 2026 at 7:36 pm

    If you have control over your web server you could define a fixed URL that will always return the week number of the latest report available.

    If you don’t have control over your web service your approach sounds like the famous bad provisional porkaround that will be alive on for eternity simply because it gets the job done 😉

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

Sidebar

Related Questions

I am currently working on a silverlight business application, so I have come across
I am currently working on a module that takes one of our business objects
I'm working on an ASP.NET4.0/C# application for a public site that needs to authenticate
I am working with a Silverlight business application that is using Windows Authentication. When
We currently have a quite complex business application that contains a huge lot of
I am working towards producing a small application that parses XML from a URL
A database application that I'm currently working on, stores all sorts of settings in
I'm working on some application, that uses a TreeView control to represent business objects.
Currently working with converting SQLException error messages into messages that are more useful for
Im currently working on a game that uses multi touch to apply zoom to

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.