I'm trying to consume secured map service via arcgis 10.2.2 soap api. I've configured my web adapter to negotiate windows domain security and everything looks fine when I check over the rest api. However I get a this exception when I try to consume the same service with soap api. I'm getting 401-unauthorized at getDefaultMapName method.

 mapServer = new MapServerBindingStub(uri, username, password);
 defaultMapName = mapServer.getDefaultMapName(); //<error here 401-unauthorized>


Caused by: com.esri.arcgisws.runtime.exception.ArcGISWebServiceException: HTTP s
tatus code {401 - Unauthorized} received from server
        at com.esri.arcgisws.runtime.transport.http.HttpClientConnectionChannelI

1 Answer 1


I found the problem here. I've setup webadaptor according to esri's spec but soap stubs aren't seem to be handling windows (NTLM) negotiation properly. Basically arcgis stubs aren't responding to challenge therefore it remains as unauthorized response for the application. I've changed the authentication to be "Basic" and negotiation started working happily.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.