cancel
Showing results for 
Search instead for 
Did you mean: 

Problem logging as 'admin, admin' using Webservice

lalli
Champ in-the-making
Champ in-the-making
Hi,

I am a newbie and trying to exploring the webservice api :

When I run FirstWebservicesClient in SDK, I was able to login using AuthenticationUtils.startSession("admin", "admin");


Now I was trying to get a ticket and hence was trying to log using
String ticket = WebServiceFactory.getAuthenticationService().startSession("admin","admin").getTicket();


I get the below error :

WSDoAllSender: password callback class provided null or empty password

Another Question :

Do anybody have sample code on how to give a link in my web-application to a document in Alfresco Repository ?
or any sample code to download a document or image in a given folder ?

Thanks in advance.

-Lalli.
1 REPLY 1

lalli
Champ in-the-making
Champ in-the-making
I could get a valid ticket as below

// Start the session
AuthenticationUtils.startSession("admin", "admin");
String ticket = AuthenticationUtils.getCurrentTicket();

but though not sure why String ticket = WebServiceFactory.getAuthenticationService().startSession("admin","admin").getTicket(); did not return a valid ticket ?  Is it because the session is not yet created ?