imranrajjad

Arcobjects Local Server Connection

Discussion created by imranrajjad on Sep 7, 2016

I am trying to connect to a locally deployed ArcGIS server through Arcobjects Java.  I am following the documentation at ArcObjects Help for Java developers | ArcGIS for Desktop .

 

serverInitializer = new ServerInitializer();
serverInitializer.init();
// Initialize with <domain> <username> <password>...
serverInitializer.initializeServer("domain", "user", "pass");
connection = new ServerConnection();
connection.connect("localhost");

 

I get the below error 

 

AutomationException: 0x5 - Access is denied. in 'Invoke'
at com.esri.arcgis.server.ServerConnection.connect(Unknown Source)

 

I assume this is from the latest documentation. I am trying to setup a Junit test case for SOE functions. If local connections have been discontinued as of 10.1, why is this still part of documentation or is there something I am missing.

Outcomes