cancel
Showing results for 
Search instead for 
Did you mean: 

alfresco APIs (two questions)

forumwebuser
Champ in-the-making
Champ in-the-making
hello

I created a jar file with some methods with the implementation of a custom alfresco web service endpoint.
This jar file is inside the lib folder of alfresco web application. Iam not deploying any alfresco.war file, which means that all modification I make is using config files and deploying a new custom jar file.

I already have some webservices running, mainly to search files on the repository and to uplaod files. These web services are integrated in Alfresco.

I realize that internally (inside the methods I refered above) Im using the webservices API.

The problems I see with using this API is that, despite my methods are running in the same machine than alfresco, Im using what I see as an additional layer to get the data. Also, I was never able to get the binary content of my documents using the webservices API. So my first question is how can I figured out what is happening. Note that Im using as authentication ntlm and passthru.

Due to these 2 problems I tried to use the other two APis: foundation and JCR. Despite the several errors Im getting, a question I would like to make is why any of these two methods seems to initialize alfresco if alfresco is already runnning on my machine? My goal would be to use an API that would used this instance of alfresco.

thank you
1 REPLY 1

mrogers
Star Contributor
Star Contributor
The foundation and JCR interfaces are not "remote" interfaces which is why the examples will start another instance of Alfresco.

However if you are adding another web service inside the alfresco webapp then that web service will be able to use the local interfaces and you will avoid the problem of adding an additional layer.

I suspect that your web service is not configured correctly.   Please post your code and more details of how it is deployed