HI Everyone,
i am working as a .net developer and I am new to alfresco.
We have a requirement to connect alfresco repository and read documents content and system properties along with aspect and custom type(model ).
to explore and to know about the alfresco , i have installed local alfresco environment and i am able to login alfresco share and see the folders and repository.
But using C# code i am not able to log in to alfresco.
i am using alfresco authentication service.
http://127.0.0.1:8080/alfresco/api/AuthenticationService
its asking me user and password and i trying to give the same user and password which is i am giving while login to alfresco share.
but the same is not working.
Can someone pls help as i have to write entire and login is just a entry point.
thanks.
Hi,
Using C# you can find some examples on Internet about OpenCmis.
https://netic360.blogspot.com/2017/04/cmis-conexion-con-alfresco.html
Regards,
clv
Thanks for your reply...
but where these services deploy.
I have written below code in C# but its not working. Its asking me user id and password and i am giving the same password which i am using to login "http://127.0.0.1:8080/share/page/console/admin-console/application" my local alfresco env.
what am i missing here.pls help.
// Initializing the URL of webservices used in this adaptor
mAuthenticationService.Url = "http://127.0.0.1:8080/alfresco/api/AuthenticationService";
mAccessControlService.Url = "http://127.0.0.1:8080/alfresco/api/AccessControlService";
// ends here
// making the connection with Alfresco repository
AuthenticationResult lAuthenticationResult = mAuthenticationService.startSession(mUserId, lPassword);
mTicket = lAuthenticationResult.ticket;
// Adding Security Header
AddSecurityHeader(mRepositoryService);
// ends here
if (mTicket != null)
{
//Checking if the connection is made than true is returned
lconnect = true;
}
}
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.