Obsolete Pages{{Obsolete}}
The official documentation is at: http://docs.alfresco.com
Web ServicesAuthentication
Back to Alfresco Content Management Web Services.
This service provides simple authentication capability.
Before access to other Web Services is allowed, a session has to be established. The authentication ticket obtained upon succesful login is placed into subsequent SOAP header calls.
Note: Investigation into WS-Security is taking place.
Encapsulates the result of an authentication request.
This method establishes a session with the repository and returns the user ticket. A session must be started before calls to other web services can be made.
AuthenticationResult startSession(string username, string password)
Parameters:
Return:
This method ends the current session with the repository.
authenticate.endSession(string ticket)
Parameters:
authentication.AuthenticationService service =
new authentication.AuthenticationService();
authentication.AuthenticationServiceSoapPort port =
service.getAuthenticationService();
// TODO initialize WS operation arguments here
java.lang.String username = 'admin';
java.lang.String password = 'admin';
// TODO process result here
authentication.AuthenticationResult result =
port.startSession(username, password);
System.out.println('Result = '+result);
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.