cancel
Showing results for 
Search instead for 
Did you mean: 

CMIS how to ?

mcasanket
Champ on-the-rise
Champ on-the-rise
Hi All,  Smiley Very Happy
   I am new to CMIS. I don't know how it works.
   I have read some articles on net about CMIS but still not getting it.

   In every article they write some url like curl -uadmin:admin "http://localhost:8080/alfresco/s/cmis" (that starts with curl) whenever I hit this url the browser goes for google search (my Tomcat is running.)

   Is it possible to crate one stand alone JAVA file (New separate project) and use CMIS?

Please help me!

Thanking you!  Smiley Happy
4 REPLIES 4

openpj
Elite Collaborator
Elite Collaborator
Is it possible to crate one stand alone JAVA file (New separate project) and use CMIS?
Yes.

You can take a look at the Apache reference implementation of the CMIS protocol that includes some good example of how you can implement your own CMIS client:
http://chemistry.apache.org/java/examples/index.html

Take a look at the CMIS Workbench application that is a complete standalone Java client that uses the OpenCMIS library to invoke calls against repositories.

Hope this helps.

mcasanket
Champ on-the-rise
Champ on-the-rise
Thank you so much OpenPj. It is so nice of you! It works… 🙂

mitpatoliya
Star Collaborator
Star Collaborator
Alfresco provide support to CMIS WebScript by exposing the repository via CMIS based WebScript where you can consume this webscript and manipulate the content in the repository.
It is supported in the Alfresco with the idea that Alfresco repository can easily communicate with the other such repository or application which support the CMIS.
Here is the link from alfresco wiki  which will gives you more idea.
http://wiki.alfresco.com/wiki/CMIS

jpotts
World-Class Innovator
World-Class Innovator
mcasanet,

When you see "curl -uadmin:admin http://localhost:8080/alfresco/s/cmis" what you are seeing is a command-line invocation of a program called curl. The "-u" switch passes in the username and password. The last bit starting with "http" is the URL that curl is invoking.

You can read more about curl here. It's used as a convenient way to execute HTTP methods against a URL. In this case, the URL is http://localhost:8080/alfresco/s/cmis. You should definitely be able to invoke that CMIS URL (without the curl and -u switch) in a browser.

Curl is used as a convenient example program because it is usually already installed on non-Windows operating systems and it is easy to work with. You can install curl for Windows if you want.

The point is, curl isn't required for working with CMIS. If you just want to execute GETs, POSTs, and DELETEs against the CMIS Atom Pub binding, there are many, many tools you can use to do that. Or, as OpenPj pointed out, you can use a higher-level API built for the language you are comfortable working with.

Jeff