Web Service Cache(?) RRS feed

  • Question

  • User-1144788673 posted

    I have a WS that queries a SDE geodatabase every 30 seconds. The problem is that it does not pick up any new entries into the geodatabase after the first time it queries it. For example:

    1. Program starts and first query is executed. 5 rows returned.

    2. A row is added to the geodatabase.

    3. The second query still returns 5 rows.

    4. Go To step 2

    The reason I believe it has something to do with caching is because I took the exact same code and placed it as a class inside my project and once the row is added, the second query immediately returns 6. I am using the WS because it provides a convenient Async method and there is some code I want to execute if the WS call returns "true" for increase in row count.

    I have set my WS method to 

    [WebMethod(CacheDuration = 0, BufferResponse = false)]

    and in the web config of the WS I have placed

          <cache disableExpiration="false" privateBytesLimit="0"/>

    I am using VS 2005, .NET 2.0.

    Has anyone experienced anything similar / know how to fix it?


    Thursday, February 21, 2013 4:36 PM

All replies