private String iniciarSesion(String URL1, String login1, String password1) {
// Primero tenemos que establecer donde está instalada la aplicación Alfresco
//, que está en una máquina externa
WebServiceFactory.setEndpointAddress(URL1);
AuthenticationServiceSoapBindingStub authenticationService = (AuthenticationServiceSoapBindingStub) new AuthenticationServiceLocator()
.getAuthenticationService();
// Start the session
AuthenticationResult result = authenticationService.startSession(
login1, password1);
String ticket = result.getTicket();
return ticket;
}
AuthenticationServiceSoapBindingStub authenticationService = (AuthenticationServiceSoapBindingStub) new AuthenticationServiceLocator()
.getAuthenticationService();
Content from pre 2016 and from language groups that have been closed.
Content is read-only.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.