You can check that the alfresco webservices are accessible on a remote machine by accessing the url http://hostname:8080/alfresco/api. You should get the following message.
Axis HTTP Servlet
Hi, you have reached the AXIS HTTP Servlet. Normally you would be hitting this URL with a SOAP client rather than a browser.
In case you are interested, my AXIS transport [...]
Tags: alfresco · webservice
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: alfresco · webservice