ArcObjects Library Reference (NetworkAnalyst)  

NAServer CoClass

Deprecated as of 10.0. A MapServer object extension for performing network analysis within a stateless environment.

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server. Requires Network Analyst Extension.

Extended Error Information

Use the ISupportErrorInfo method InterfaceSupportsErrorInfo to determine if the object supports extended error information. If the object supports extended error info, VC++ developers should use the OLE/COM IErrorInfo interface to access the ErrorInfo object. Visual Basic developers should use the global error object Err to retrieve this extended error information.

Interfaces

Interfaces Description
ILogSupport (esriSystem) Provides access to methods for initializing an object for logging.
INAServer Deprecated as of 10.0. Provides access to methods that perform network analysis in a stateless environment within a MapServer.
INAServer2 Deprecated as of 10.0. Provides access to methods that perform network analysis in a stateless environment within a MapServer.
IObjectActivate (esriSystem) Provides access to methods for activating and deactivating objects.
IObjectConstruct (esriSystem) Provides access to methods for constructing an object.
IRequestHandler (esriSystem) Provides access to members that control handing of request messages.
IRequestHandler2 (esriSystem) Provides access to members that control handing of request messages.
IRESTRequestHandler (esriSystem) Provides access to REST request for SO or SOE.
IServerObjectExtension (esriServer) Provides access to the members that control a server object extension.
ISupportErrorInfo Indicates whether a specific interface can return Automation error objects.

Remarks

At version 10.1, ArcGIS for Server no longer supports performing network analysis via local connections using the GISServer and GISClient APIs. Use the SOAP or REST API instead.

The NAServer is a MapServer object extension that can be used to perform network analysis in a stateless environment using ArcGIS for Server.

[C#] This example illustrates connecting to an NAServer web service via a web reference and getting the names of the route layers.
// Assumes you've created a web reference to web service named "SanFrancisco"
SanFrancisco_NAServer pNAServer = new SanFrancisco_NAServer();
pNAServer.Url = "http://localhost:6080/arcgis/services/SanFrancisco/MapServer/NAServer"

// Use NAServer to get analysis layer names
string[] routeLayerNames = pNAServer.GetNALayerNames(esriNAServerLayerType.esriNAServerRouteLayer);