Esri Business Analyst Server API for Silverlight 2.2 Reference
BAServerClient Class
Members  Example  See Also  Send Feedback
ESRI.ArcGIS.Client.BAServer.Tasks Namespace : BAServerClient Class

Glossary Item Box

The BAServerClient class is the client class encapsulating a Business Analyst Server HTTP (REST) Service.

Object Model

BAServerClient ClassITokenProvider InterfaceITokenService Interface

Syntax

 
Visual Basic (Declaration)
C#
 
 

Example

The code snippet below shows how to create an instance of this class with the assumption that the Business Analyst Server instance uses token-based security. To get the example working, specify valid values for username, password and the URLs.
C#Copy Code
BAServerClient client = new BAServerClient("http://localhost/ArcGIS/baserver/REST/services/DefaultMap/BAServer");
            
// Token provider updates a security token when it expires.
// Remove lines below if the token-based security is disabled.
ArcGISTokenProvider tokenProvider = new ArcGISTokenProvider(new UserCredentials("username", "password"));
tokenProvider.Url = "https://localhost/ArcGIS/tokens";
client.TokenProvider = tokenProvider;

Inheritance Hierarchy

System.Object
   ESRI.ArcGIS.Client.BACore.Client.AbstractClient
      ESRI.ArcGIS.Client.BACore.Client.BAClient
         ESRI.ArcGIS.Client.BAServer.Tasks.BAServerClient

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2010-2012 Esri, Inc. All Rights Reserved.