04-23-2019 12:52 AM
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.
04-23-2019 07:10 AM
04-30-2019 12:26 AM
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;
}
}
04-25-2019 01:56 AM
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
Explore our Alfresco products with the links below. Use labels to filter content by product module.