agea/CmisJS

CMIS Session (rootFolderUrl)

Closed this issue · 2 comments

Hi, I cant load the session properties.

CODE:

var cmis = require('cmis');
var session = cmis.createSession('http://172.20.4.95:8080/nuxeo/atom/cmis');
session.setCredentials('user', 'pass');
session.loadRepositories();
console.log(session.getProperties());

ERROR MESSAGE:

TypeError: Cannot read property 'rootFolderUrl' of undefined
at Object.session.getProperties (C:\Archivos de programa\nodejs\node_modules
\cmis\lib\cmis.js:692:66)
at Object. (C:\Archivos de programa\nodejs\node_cmis.js:5:21)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3

Thanks.

Andrés

agea commented

This library works only with CMIS browser binding, which uses JSON as data format, while you are trying to connect to an atom binding, which uses XML, here you can find some links, and explanations:

http://www.alfresco.com/cmis

Thanks, i use var session = cmis.createSession('http://172.20.4.95:8080/nuxeo/json/cmis'); and can get the repositories. thanks for all.