cancel
Showing results for 
Search instead for 
Did you mean: 

webserviceclient.properties not read

bparis
Champ in-the-making
Champ in-the-making
I've been trying SDK 1.3 webservice clent samples on my pc and have seen that the webservice client always connect to my localhost alfresco  server, never to the remote server I've set in the webserviceclient.properties file.  It's just like this file is never read.

As I read in the forum someones had similar problem with version 1.3 of Alfresco, I first changed the "web-service-client.jar" to the one included in sdk1.4, without any good news.

Then I have imported  the full sdk 1.4 in my Eclipse but I still get the same problem.  The webservice client only connect to the localhost.

Anyway, when running the code the property file is correctly copied from
..\WebServiceSamples\src\alfresco\extension
to
..\WebServiceSamples\build\alfresco\extension

Is this correct ? 

I even set crazy things like
repository.location=http://localhost:8082
and see the client keeps connecting to the localhost at port 8080.

Is there some additional things to set in Eclipse ?

Any help should be appreciated,
Bernie
1 REPLY 1

bparis
Champ in-the-making
Champ in-the-making
Oups, I've just found in the WebServiceFactory.java we are supposed to put the file in …/alfresco/ directory, **NOT** in ../alfresco/extension/.

As it is in ../alfresco/extension/ directory when it comes out of the SDK box, we have to move it one level upstair.

I hope this post will make save time to someones…

Bernie