How to access remote alfresco server using web service?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-20-2006 07:28 AM
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
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
Labels:
- Labels:
-
Archive
4 REPLIES 4

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2006 06:31 AM
Kishore,
Move the webserviceclient.properties file from the package "alfresco.extension" to "alfresco" and it should work fine.
Pavan Kumar
Move the webserviceclient.properties file from the package "alfresco.extension" to "alfresco" and it should work fine.
Pavan Kumar
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-21-2006 11:06 AM
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
Thanks
kishore

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-24-2006 05:20 AM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-27-2006 12:42 AM
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
Surprising thing is,its look like the package location of properties file was wrongly coded but nobody observed the problem so far?
Thanks
Kishore
