cancel
Showing results for 
Search instead for 
Did you mean: 

How to access remote alfresco server using web service?

kishore
Champ in-the-making
Champ in-the-making
Hi Everybody,

     Whenever i try to run webservice examples in sdk,it looks like  the webservice code uses the localhost by default.But i want to access remote alfresco server.Even i tried by changing the repository url like, repository.location=http://remote-server:8080 in the  webserviceclient.properties file but no use.

      Whether i am missing anything here?Help is needed in this regard.


Thanks
Kishore
4 REPLIES 4

pavan_kumar
Champ in-the-making
Champ in-the-making
Kishore,

Move the webserviceclient.properties file from the package "alfresco.extension" to "alfresco" and it should work fine.

Pavan Kumar

kishore
Champ in-the-making
Champ in-the-making
Thanks for ur reply,now its working fine.But can u tell where the problem actually?Is it problem with the alfresco web service code itself.

Thanks
kishore

pavan_kumar
Champ in-the-making
Champ in-the-making
If you look into the source code of the webservice samples, the  class "WebServiceFactory" is having a property as follows:

private static final String PROPERTY_FILE_NAME = "alfresco/webserviceclient.properties";

Probably this is a typographical mistake , you can observe the code is pointing a resource  "alfresco/webserviceclient.properties"
and in fact that resource is there under "alfresco/extension/webserviceclient.properties".

Hence the application always pickingup the default "localhost" as the alfresco server to contact.

Cheers,
Pavan Kumar

kishore
Champ in-the-making
Champ in-the-making
thanks for raising the code problem  and reply,now i am able to point  remote alfresco server and its working fine.

    Surprising thing is,its  look like  the package location of properties file was wrongly coded but nobody observed the problem so far?

Thanks
Kishore