HttpTransportProperties.Authenticator auth = new HttpTransportProperties.Authenticator(); auth.setPreemptiveAuthentication(true); auth.setUsername(login); auth.setPassword(password); stub._getServiceClient().getOptions().setProperty(HTTPConstants.AUTHENTICATE,auth);
Now you can connect to protected services.
Комментариев нет:
Отправить комментарий