One Service used as either Cached or Dynamic

Discussion created by plaizilla on Jan 2, 2012
Latest reply on Jan 4, 2012 by ahoque-esristaff
It may sound odd. But I need to create a map service so that the client apps could decide whether to use it as cached or dynamic. Of course, when the service is used as dynamic, the client app should be able to manipulate individual layers. On the other hand, the static tiles will be returned when the service is as cached.

In my test (AGS10.2, two layers), the service is set as a cached service on the service configuration (ArcCatalog). I could initialize the map service in any of two ways with no problem. However, I wasn't able to turn on/off individual layers even when the map service is initialized as dynamic, where layers seem fused and make no response to the rest request ("Layers - Show:0/1").

I can always create two services, one dynamic and the other cached. Is it possible to create a single map service to serve both ends?