Sheila's Blog

Software Development

Sheila's Blog header image 5

Entries from April 6th, 2009

Alfresco – Create User

April 6th, 2009 No Comments

Creating a new alfresco user using a web service call requires the following jar files in your classpath:
alfresco-web-service-client.jar
axis-1.4.jar
commons-discovery-0.4.jar
commons-logging-1.1.jar
jaxrpc.jar
opensaml-1.1.jar
wsdl4j-1.6.2.jar
wss4j.jar
xmlsec-1.4.1.jar
Create a java class called AlfrescoCreateUser with a main method
public static void main(String[] args) throws Exception {
AlfrescoCreateUser alfTest = new AlfrescoCreateUser();
alfTest.createUser();
}
Copy the createPersonProperties method from the AdministrationServiceSystemTest in the web service client code
/**
* Taken [...]

Tags:   ·