My requirement is - download a document by its name
If you think logically, There can be many files inside alfresco repository with the same name.So its not possible to download a file using only name.But if you give a full path of a file it is possible.You need to develop a api for the same.
One way would be developing an abstract webscript which will download a file using path.
Instead of developing a custom webscript, try to download it via webdav protocol for example.
Retrieving data ...