title: Alfresco integration with Web Service
body: <p>I'm trying to make a Web Service in JAVA that communicates with Alfresco. This Web Service is requested by Alfresco to give informations about a document that is on Alfresco. So, I make a request from Alfresco to Web Service from a specific document, and the Web Service returns the information about this document to display on Alfresco. </p>
  
  <p>I read that I can use <a href="http://ecmarchitect.com/images/articles/cmis/cmis-article.pdf" rel="nofollow">Alfresco CMIS</a> or <a href="https://wiki.alfresco.com/wiki/Alfresco_Content_Management_Web_Services" rel="nofollow">Alfresco Web Services API</a> to make the communication with web services and Alfresco. Is that right? What is the difference between them and which is better for my problem?</p>
  
  <p>Another important question is, to make the authentication, I saw in the book Alfresco CMIS by Martin Bergljung that I have to put "username" and "password" in the code. But, I want to adapt to all users of Alfresco, there are safe ways of authentication instead of this, give the authentication from Alfresco to Web Service for example? I read the book and I don't find the solution yet.</p>