引用两个服务是,需要将这两个服务,并在一起使用,方法如下:
- Open a Visual Studio 2005 command prompt
- Change to the directory where the proxy stub file was generated: [Solution Folder]"Web References"WebService
- For C#, type in the following (change localhost if the ArcGIS server is on a different machine): "wsdl.exe /Language:cs /verbose /sharetypes /namespace:GeocodeRoute_WebService.WebService /out:Reference.cs http://localhost/arcgis/services/SanFrancisco/MapServer/NAServer.agsx?wsdl http://localhost/arcgis/services/SanFranciscoLocator/GeocodeServer?wsdl"
- For VBNet, type in the following (change localhost if the ArcGIS server is on a different machine): "wsdl.exe /Language:VB /verbose /sharetypes /namespace:GeocodeRoute_WebService.WebService /out:Reference.vb http://localhost/arcgis/services/SanFrancisco/MapServer/NAServer.agsx?wsdl http://localhost/arcgis/services/SanFranciscoLocator/GeocodeServer?wsdl"
浙公网安备 33010602011771号