Select to view content in your preferred language

REST with Silverlight not displaying data changes

1224
10
05-01-2010 04:58 AM
AnilDhiman
Deactivated User
Hi,
     I have a geodatabase published as rest service through arcserver. After publshing the service, if I do some editing in layers through ArcMap, I do not see the changes made in the base data on silverlight map. I tried to restart the service but no luck. But when I create a new service with the same data, I could easily see the changes.

Also, When I try to do some rest query for newly generated objectIDs, I easily get those freshly created geometry objects.
1) Just wanted to know, Does REST support this behaviour or am i missing something?
2) Also, What if I want to get related tables results in through REST query.
0 Kudos
10 Replies
BranonBarrett
Emerging Contributor
This thread is a bit old but I am having a similar issue. Dominique, you said:

Might be a browser's cache issue.
Try setting the 'DisableClientCaching' property to true. This adds a timestamp parameter to the request.


My issue is that setting DiableClientCaching to true does NOT disable caching of the request that is sent to initialize the service only the request for the image. For example, the user adds the map service layer to the map dynamically. Later is that session something about that map service changes (i.e. another layer was added) so a request is sent (or I try to send a request) to initialize that service and get the LayerInfo array. Problem is the newly added layer is not in the LayerInfo array because the client app just grabs the cached request (verified using Fiddler). This can be avoid by setting Internet Options >  Browser History > Check for newer versions of stored pages: to 'Everytime I visit the webpage'; however, this is not an option for many of our clients because they have "locked" machines.

So, my question is how can I really disable client side caching of an ArcGISDynamicMapServiceLayer?
0 Kudos