Hi ,
I am new to Alfresco . And i am trying to hit the api using the .NET framework . But somehow i am not able to hit the below URL : http://localhost/alfresco/service/cmis . I am using the DotCMIS.dll but somehow it responds me as sendFailed. Please find my code below :
Dictionary<string, string> parameters = new Dictionary<string, string>();
parameters[DotCMIS.SessionParameter.BindingType] = BindingType.AtomPub;
parameters[DotCMIS.SessionParameter.AtomPubUrl] = "http://localhost/alfresco/service/cmis";
parameters[DotCMIS.SessionParameter.User] = "admin";
parameters[DotCMIS.SessionParameter.Password] = "********";
SessionFactory factory = SessionFactory.NewInstance();
ISession session = factory.GetRepositories(parameters)[0].CreateSession();
I am getting the error as Send Failed . Can you please help me out if i am missing something . As i want to implement the search document api .
Any reference URL and help is appreciated .
Thanks !!
Hi,
I think the url should be something like this:
http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.0/atom
I mean, you must use the suitable port in your Alfresco.
Regards,
clv
Hi ,
Thanks for your response . I have resolved the issue . Can you help me with the searching of pdf content . Please find the below code that I am using :
IItemEnumerable qr = session.Query("SELECT * FROM cmis:document where CONTAINS('dockertraining')",false);
But its not searching the content , I mean the result returned is zero .
Regards,
Banish Jha
Hi,
In your Alfresco, check the query using Node Browser, please.
What's the results of Node Browser?
If there's no result, maybe this text: "dockertraining", doesn't indexed (for example: scanned document whithout OCR).
Regards,
clv
Hi Calvo ,
Thanks for your quick response . I have already solved it and the search is working fine for me .
Appreciate your work.
Regards,
Banish Jha
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.