I have already set up Tomcat Servlet Containers running multiple instances of alfresco. Currently the Java and PHP webservices clients only allow you to change the host/port of the alfresco instance, not the servlet context.I was able to hack this in with the PHP client, I am going to have to do the same with the Java Client.I would like to propose changing
/** Default endpoint address **/
private static final String DEFAULT_ENDPOINT_ADDRESS = "http://localhost:8080";
/** Service addresses */
private static final String AUTHENTICATION_SERVICE_ADDRESS = "/alfresco/api/AuthenticationService";
private static final String REPOSITORY_SERVICE_ADDRESS = "/alfresco/api/RepositoryService";
private static final String CONTENT_SERVICE_ADDRESS = "/alfresco/api/ContentService";
private static final String AUTHORING_SERVICE_ADDRESS = "/alfresco/api/AuthoringService";
private static final String CLASSIFICATION_SERVICE_ADDRESS = "/alfresco/api/ClassificationService";
private static final String ACTION_SERVICE_ADDRESS = "/alfresco/api/ActionService";
private static final String ACCESS_CONTROL_ADDRESS = "/alfresco/api/AccessControlService";
private static final String ADMINISTRATION_ADDRESS = "/alfresco/api/AdministrationService";
private static final String DICTIONARY_SERVICE_ADDRESS = "/alfresco/api/DictionaryService";
to /** Default endpoint address **/
private static final String DEFAULT_ENDPOINT_ADDRESS = "http://localhost:8080/alfresco";
/** Service addresses */
private static final String AUTHENTICATION_SERVICE_ADDRESS = "/api/AuthenticationService";
private static final String REPOSITORY_SERVICE_ADDRESS = "/api/RepositoryService";
private static final String CONTENT_SERVICE_ADDRESS = "/api/ContentService";
private static final String AUTHORING_SERVICE_ADDRESS = "/api/AuthoringService";
private static final String CLASSIFICATION_SERVICE_ADDRESS = "/api/ClassificationService";
private static final String ACTION_SERVICE_ADDRESS = "/api/ActionService";
private static final String ACCESS_CONTROL_ADDRESS = "/api/AccessControlService";
private static final String ADMINISTRATION_ADDRESS = "/api/AdministrationService";
private static final String DICTIONARY_SERVICE_ADDRESS = "/api/DictionaryService";