AnsweredAssumed Answered

Web service client startSession not works with my Alfresco 5.0

Question asked by spilby on Dec 9, 2015
Latest reply on Jul 4, 2016 by opbarth
Hi,

I'm changing our Alfresco 4.1.6 to an Alfresco 5.0.

When I execute this code from Java


WebServiceFactory.setEndpointAddress(endPoint);
AuthenticationResult result = WebServiceFactory.getAuthenticationService().startSession(username, password); 


and points to our old Alfresco 4.1.6 (with a url http://10.120.X.XXX:8080/alfresco/api) works ok and connect.

But when I execute that code on our new Alfresco (with the same url "/alfresco/api" but new IP) it returns a exception.

We still use the same web-service-client library (alfresco-webservice-client-2.1.jar). Alfresco 5.0 not works witj this library? Or maybe the url to start the session are different?

When I call to this url with a browser returns me an org.alfresco.webservice.util.WebServiceException: Error starting session.


{"list":{"pagination":{"count":1,"hasMoreItems":false,"totalItems":1,"skipCount":0,"maxItems":100},"entries":[{"entry":{"quotas":[],"isEnabled":true,"id":"-default-"}}]}}


What's the problem? Someone knows it?

Outcomes