Arcobjects Local Server Connection

09-07-2016 01:05 AM
New Contributor III

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();
// Initialize with <domain> <username> <password>...
serverInitializer.initializeServer("domain", "user", "pass");
connection = new ServerConnection();

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.

0 Kudos
0 Replies