ArcGISWS MapServerBrowser



Description:

This sample is a desktop client application that shows how to consume ArcGIS Server MapServer Web services. The MapServer is exposed via Web service methods and objects retrieved from it's WSDL. This sample does not make use of any ArcObjects, so it doesn't require any ArcGIS software or licensing to run, but does require that you have a Web service catalog containing at least one MapServer Web service. All map server objects expose the same set of Web service methods and objects. As a result, once the Web service proxies are generated for a map server, they can be reused for any map server Web service. The map server proxies have been generated for you in this sample. To generate the Web service proxies for an ArcGIS Server Web service in Visual Studio, add a new Web Reference to the current project and specify the path to the Web service endpoint. For example, an ArcGIS Server Web service endpoint may be referenced as "http://myserver/arcgis/services/NorthAmerica/MapServer". Add a "?wsdl" to the end of the URL to get the WSDL for the service type (e.g. MapServer, GeocodeServer, GPServer). A number of SOAP toolkits exist to convert the WSDL into native objects - namely a Web service proxy and supporting Value objects. Visual Studio 2005 and the Microsoft .NET SDK use wsdl.exe to consume WSDL content.
Products:
Server: C#

Platforms: Windows

Minimum ArcGIS Release: 9.2

How to use:
  1. Design Time:
    1. Create an ArcGIS Server Web service. See the ArcGIS Server Administration guide or ArcGIS Manager help system for additional information. Sample data is located in <ArcGIS install location>\DeveloperKit\SamplesNet\Server\data
    2. In Windows Explorer, navigate to <ArcGIS install location>\DeveloperKit\SamplesNet\Server\Desktop_Client_Applications and unzip ArcGISWS_MapServerBrowserCSharp.zip or ArcGISWS_MapServerBrowserVBNet.zip (if available) to a location of your choice. You should see either a CSharp or VBNet folder appear where you unzipped the files.
    3. In Windows Explorer, open the directory referencing the language of your choice: CSharp or VBNet. In the ArcGISWS_MapServerBrowser directory, open the ArcGISWS_MapServerBrowser.sln in Visual Studio.
    4. Under the Debug menu, select the "Start" item or press F5. If successful, ArcGISWS_MapServerBrowser application should start.
    5. Address any errors that occur in the debugging process.
  2. Run time:
    1. In the textbox next to "Web Service Catalog URL", enter the path to an ArcGIS Server Web service catalog endpoint. Click the "Get Web Services" button.
    2. The combo box next to "MapServer Web Service" should be enabled. Select an ArcGIS Server Web service endpoint for a Map server.
    3. The default dataframe will be displayed in the image control. If more than one dataframe is available, use the "Dataframe" combo box to select another dataframe.
    4. If the current dataframe contains bookmarks, use the "Bookmark" combo box to select a bookmark.
    5. The Zoom In, Zoom Out, and Full Extent buttons do not require interaction with the map. The Pan tool requires interaction with the map.
    6. Other ArcGIS Server Web service endpoints can be selected in the same session.

Download the C# files
ArcGISWS_MapServerBrowser/ArcGISWS_MapServerBrowser/Form1.cs The form containing the controls and application functionality.

Download the files for all languages