HTTP Basic Authentication
The PPM Web service client can be programmed so that instead of WS-Security headers, you can use HTTP basic authentication headers to pass the user credential.
The following examples illustrate how to pass the user credential by using HTTP basic authentication headers:
public static void setHttpBasicAuthHeader(Stub stub, String
username, String password) {
Options options = stub._getServiceClient().getOptions();
if (options == null) return;
HttpTransportProperties.Authenticator auth = new
HttpTransportProperties.Authenticator();
auth.setUsername(username);
auth.setPassword(password);
auth.setPreemptiveAuthentication(true);
options.setProperty(HTTPConstants.AUTHENTICATE, auth);
stub._getServiceClient().setOptions(options);
}


