I try to load a shape file into the dynamic workspace of a map service but can't get it working.
Created a map service.
Enabled dynamic workspace and added a workspace: Type: Shapefile, Connection String: D:\my_path, ID: GDSCWorkspaceID
In my software I created a LayerDataSorce as a source for a DynamicLayerInfo to be placed in the dynamicLayerInfos of my map service (as in the Dynamic Workspace example).
But what to use for the datasource? There are only a few classes implementing IDataSource. I tried TableDataSource with workspaceID 'GDSCWorkspaceID' and dataSourceName 'myShape.shp' which is in D:\my_path. Doesn't work.