Using services
To use an ArcGIS for Server service in the ArcGIS Runtime SDK for WPF, you need to know the uniform resource locator (URL) of the service. URLs can vary but will often look like the following for ArcGIS for Server services:
http://www.example.com/arcgis/rest/services/ExampleService/MapServer
Using map services
You can obtain information about a map service either from your ArcGIS for Server administrator or by searching the ArcGIS Services Directory.
In addition to the service's URL, you may also need further information to use a map service:
- Map layer IDs. These are necessary if you intend to
query a specific layer or layers.
Note:
IDs are usually integer values and are not the same as the layer name, which is assigned by the author of the map.
- Names of the attribute fields in a layer. These are needed if you intend to specify which fields are returned from a query.
- Other map information, such as the spatial extent of the map or individual layers, the feature type of a layer (point, line, or polygon), or the minimum and maximum scales at which the layer displays.
- Whether the map service is tiled (cached) or dynamic (non-cached). Tiled map services contain tile info while dynamic map services will not. Tile info is available in the service information provided by ArcGIS Services Directory.
Using other service types
Other services require different information. For example, geocoding services define address fields for input. You provide the input, such as a street, city, state, and postal code, to return one or more locations as a result. Each location includes a set of candidate fields. Geoprocessing services can contain one or more tasks. Each task maintains a set of input and output parameters. You provide input parameters to generate results as output. These parameters have specific data types and may or may not be required. Image services operate like map services but provide dynamic, interactive access to raster imagery. A geometry service (one per ArcGIS Server site, named "Geometry") exposes a set of standard utility methods. Most of the methods involve operations on geometry, such as changing spatial reference, buffering, or measuring area and distance.
This data can be obtained from the ArcGIS Services Directory associated with the ArcGIS Server site you want to use. In addition, some services may be secure so only authorized users may access them.