As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
String alfrescoEndpointAddress = "http://localhost:8080/alfresco/api"; String username = "admin"; String password = "admin"; WebServiceFactory.setEndpointAddress(alfrescoEndpointAddress); AuthenticationUtils.startSession(username, password); try{ …. } finally{ AuthenticationUtils.endSession(); … }
I think that you have some problems with your network, or you are not addressing correctly your Alfresco Web Service Client.So you can override the Alfresco Web Service Client endpoint address, adding the following instructions before start your business operations in the following way: String alfrescoEndpointAddress = "http://localhost:8080/alfresco/api"; String username = "admin"; String password = "admin"; WebServiceFactory.setEndpointAddress(alfrescoEndpointAddress); AuthenticationUtils.startSession(username, password); try{ …. } finally{ AuthenticationUtils.endSession(); … } Hope this helps.