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?
Thanks,