04-14-2015 06:56 AM
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();
04-14-2015 08:50 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.