それも可能ですか?ドキュメントはそれを明確にしません。認証を機能させるためにさまざまなメカニズムを試しましたが、「401:Unauthorized」エラーが継続的に発生します。これが私がいる場所です:
stub = new EngineStub();
HttpClient client = new HttpClient();
client.getParams().setAuthenticationPreemptive(true);
stub._getServiceClient().getServiceContext().getConfigurationContext().setProperty(HTTPConstants.CACHED_HTTP_CLIENT, client);
HttpTransportProperties.Authenticator auth = new HttpTransportProperties.Authenticator();
List<String> authpref = new ArrayList<String>();
authpref.add(AuthPolicy.BASIC);
auth.setAuthSchemes(authpref);
auth.setUsername(username);
auth.setPassword(password);
auth.setPreemptiveAuthentication(true);
stub._getServiceClient().getOptions().setProperty(HTTPConstants.AUTHENTICATE, auth);