08-27-2012 01:20 PM
AdministrationService AdminService = new AdministrationService();
this.setEndpointAddress("http://192.168.20.10:8080/alfresco/api/AuthenticationService");
AuthenticationService authenticationService = new AuthenticationService();
authenticationService.startSession("admin", "password");
this.setEndpointAddress("http://192.168.20.10:8080/alfresco/api/AdministrationService");
AdminService.changePassword(usernam, oldPasswd, newPasswd);
authenticationService.endSession("admin");
The request failed with HTTP status 404: /alfresco/api/AuthenticationService.
08-28-2012 07:15 AM
08-28-2012 12:44 PM
this.getAdministrationService().changePassword(username, oldPassword, newPassword);
The part that I was missing was the call to getAdministrationService()Well I have not done any coding in C# for alfresco
but thing I want to point out is if you are setting endpoint this object is referring to what?
and where you are setting the end point you need to get the service from that context only.
In java we set endpoint in WebscriptSessionFactory and then get all the services from that factory only.
I think this is the problem over here as well you should not use
AuthenticationService authenticationService = new AuthenticationService();
You need to fetch that service from context where you had set the endpoint.
08-29-2012 05:42 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.