cancel
Showing results for 
Search instead for 
Did you mean: 

Exposing contents via webservice

alihammad
Champ in-the-making
Champ in-the-making
How can I expose Alfresco web service/services so that Alfresco contents can be accessed via a webservice.

A tutorial or helping material is required..

Thanks
5 REPLIES 5

alihammad
Champ in-the-making
Champ in-the-making
no answers Smiley Sad

tim-erwin
Champ in-the-making
Champ in-the-making
Alihammad,

I don't really understand your endeavor. What do you mean with "expose services" and what are "contents"? The information about files? Metadata? The files?

Regards,
Tim

alihammad
Champ in-the-making
Champ in-the-making
First of all thank you Tim for replying back.

Actually i want to access files from Alfresco through a web service ..

mrogers
Star Contributor
Star Contributor
The content of each file has its own URL so you don't need a web service for that.   

You will find details of how to use the various web services in this forum e.g.
http://forums.alfresco.com/en/viewtopic.php?f=3&t=14509&p=48513&hilit=webservice+list+files#p48513

And look here.
http://wiki.alfresco.com/wiki/Alfresco_Content_Management_Web_Services

tim-erwin
Champ in-the-making
Champ in-the-making
You can get the URL to the content via content web service:


Content theContent = contentService.read(new Predicate(theFile, null, null), Constants.PROP_CONTENT)[0];
String connStr = theContent.getUrl() + "?ticket=" + ticket;

Then you can use whatever method to retrieve the contents themselves.

Hope that helps,
Tim