cancel
Showing results for 
Search instead for 
Did you mean: 

Using webservice client on Containers with Mutiple instances

kst
Champ in-the-making
Champ in-the-making
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";
1 REPLY 1

rwetherall
Confirmed Champ
Confirmed Champ
Hi,

Yes this is a change that we should make.

The best way to get this into the main code line is to raise an issue on JIRA and supply the details of any code patches you think need to be made in order to fix the issue.

Many thanks,
Roy