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