cancel
Showing results for 
Search instead for 
Did you mean: 

Examples for WebServicesClient

samuele
Champ in-the-making
Champ in-the-making
Hi,

I have download the webservices 1.3, and I have problem of execution.
Where can I find some examples for WebServicesClient , with the explanation for the installation and the creation of new user??


P.S: I have alfresco version 1.3.0

Thanks,  Samuele
3 REPLIES 3

samuele
Champ in-the-making
Champ in-the-making
AuthenticationUtils.startSession("admin", "admin");
error java.lang.NullPointerException

For being able to use this method I must set some option on alfresco?

sam69
Champ in-the-making
Champ in-the-making
Hi !

You can download the community SDK, there are some WebServices sample.

samuele
Champ in-the-making
Champ in-the-making
Hi,

Thanks, I have download the community SDK 1.3 and 1.4 but I don't  find examples with creation of new users with webServices.

 AuthenticationUtils.startSession("admin","admin");
          
         
         NewUserDetails newUser = new NewUserDetails();
         newUser.setUserName("prova");
         newUser.setPassword("prova");
               
         UserDetails[] userDetails = WebServiceFactory.getAdministrationService().createUsers(new NewUserDetails[ ]{newUser});
         AuthenticationUtils.endSession();
      

this is my last error "org.xml.sax.SAXParseExceptionSmiley Tongueremature end of file"

Can You  Help me?
please Samuele