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 8730547
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T09:02:52+00:00 2026-06-13T09:02:52+00:00

What I want to achieve is Server Side (WCF Service with JSON or ASP.NET

  • 0

What I want to achieve is

Server Side (WCF Service with JSON or ASP.NET page (i dont know what I need yet))

  1. Check for latest data over an HTTP request from an existing page periodically. (This is a dynamic page and does not know I am there so it can not send updates.)
  2. If anything changed on that page send post request to Google Cloud Messaging system that there is a new data
  3. Clients already registered get notified and get the payload data which is smaller than 4 KB.

Question is #1 how do i check for new data periodically on server side? If that was an desktop app sure I would use a Timer.

Im stuck at this point. Can you please let me know what you think it should be like

Thanks

  • 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-06-13T09:02:53+00:00Added an answer on June 13, 2026 at 9:02 am

    When do you mean by “Check for latest data over an HTTP request from an existing page”? Is it your page, or someone else’s? Also, why do you think your code needs to be within a WCF service or ASP.NET page? From what you’ve told so far, this sounds like a regular executable. Let’s recap what it would do:

    • pull a page over HTTP, check if it changed since the last time
    • if so, pull a list of register clients, send GCM’s to them

    Neither task involves serving up Web pages. If this piece of code needs to interact with a website somehow, that’s OK; but it doesn’t have to be a part of the said website. It can, but it does not have to.

    That said, running scheduled tasks purely within a Web server environment is tricky, bordering on impossible. There are multiple scheduling facilities out there (Windows Task Scheduler comes to one’s mind first) – but they are mostly geared executing programs – that is, standalone programs, EXE’s. If you absolutely have to run this code within a Web server, you can write something executable standalone (e. g. in JavaScript using XMLHTTPRequest, or a cURL invokation) that would cause an HTTP request to the local Web server, and schedule invokation of the said script in Task Scheduler.

    EDIT: the scheduling itself can’t and shouldn’t be Web-based. The scheduling engine is external to the Web service – most hosting providers would offer such a service, on top of the Windows Task Scheduler. Check your server’s administrative interface (CPanel, RDP or what have you).

    Anyway, to call a Web page from a scheduler, schedule the following command:

    cscript.exe c:\SomePath\CallWeb.js
    

    Where CallWeb.js goes like this:

    var xh = new ActiveXObject("Msxml2.XMLHTTP");
    xh.open("GET", "http://localhost/mypage.aspx", false);
    xh.send();
    

    Where mypage.aspx is the page that pulls SonDepremler.aspx, parses, detects changes, and sends the GCM’s.

    This is the answer to your question #1 – how can you do some scheduled processing in a hosted Web server environment. If you’re stuck with other parts of the solution, please ask separate questions.

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

Sidebar

Related Questions

Background: I am developing an ASP.NET application with a server side plug in architecture.
I followed this post: DataTable: Server Side Processing in ASP.Net I am using this
i am using asp.net 3.5 and c#. I have a server-side div (runat=server) and
the task I want to achieve is import XML file into SQL Server. Once
I have a server-side script (PHP) returning JSON data to populate an ExtJS Grid.
My AJAX-enabled WCF service returns JSON using this contract, [DataContract] public class JQGridContract {
I have a ASP.Net web app with jquery implemented on the client side. within
I want the following things to occur: Have the process automated server side. Simply
How would I get my JSON string to my asp.net using jquery I am
May i achieve that server side application (using android bluetooth API)connect to particular client

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.