How to use
See How to use ArcGIS samples for help on compiling, setting up the debugger, and running the sample.
Data has been provided for your use with this sample. It can be found at <Your ArcGIS Developer Kit Install directory>/Samples/data/ArcObjectsNet/ServerLayerAccessSOI.
If the sample has associated data, you will find that the sample's zip file includes a "data" folder alongside the language folders. However, you will need to update the sample to point to the location of the data once you have extracted all the files.
- Deploy LayerAccessSOI.soe to your server (or your own modified version if you have changed the path for the permission.json file).
- Enable the SOI on a map service.
- Disable caching of layer resources in the ArcGIS Server REST handler.
- Consume the service using different users.
- Note how certain layers are only visible when the request is authenticated and matches the permissions defined in permission.json.
NetLayerAccessSOI\NetLayerAccessSOI.cs | Core SOI implementation for REST web service. |
NetLayerAccessSOI\bin\Debug\NetLayerAccessSOI.soe | The deployable SOE file. |
ServerLayerAccessSOI\permission.json |
Download the files for all languages