You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@chemistry.apache.org by gi...@iol.pt on 2013/09/18 17:46:51 UTC
Server with CMIS version 1.1
Hi all,
Based on the file share example (v0.10.0 over Java), I'm building a CMIS
server. My goal is to publish a version 1.1 compatible interface, so I've
set CMIS version to 1.1:
... repoInfo.setCmisVersionSupported("1.1");
repositoryInfo.setCmisVersion(CmisVersion.CMIS_1_1); ... typeManager = new
TypeManager(CmisVersion.CMIS_1_1); ...but debugging I getalwaysversion 1.0
from the context: "context.getCmisVersion()"Do I need to declare 1.1
somewhere else?Thanks, and kind regards,GLoureiro
Re: Server with CMIS version 1.1
Posted by gi...@iol.pt.
Hi Florian,
You are right, I've switch now to the 1.1 URL for atom
(http://localhost:8080/myserver/atom11[1]) and got the correct CMIS
version in the context.
Many thanks & kind regards,
GLoureiro
Citando Florian Müller <fm...@apache.org>:
> Hi GLoureiro,
>
> You are probably using the wrong URL.
> There should be five servlets in your web.xml - two for CMIS 1.0
> (AtomPub and Web Services) and three for CMIS 1.1 (AtomPub, Web
> Services, and Browser).
> If connect with your client to one of the CMIS 1.1 URLs, the
> framework should report the CMIS version 1.1 in the CallContext.
>
>
> - Florian
>
>> Hi all,
>>
>> Based on the file share example (v0.10.0 over Java), I'm building a CMIS
>> server. My goal is to publish a version 1.1 compatible interface, so I've
>> set CMIS version to 1.1:
>>
>> ... repoInfo.setCmisVersionSupported("1.1");
>> repositoryInfo.setCmisVersion(CmisVersion.CMIS_1_1); ...
>> typeManager = new
>> TypeManager(CmisVersion.CMIS_1_1); ...but debugging I
>> getalwaysversion 1.0
>> from the context: "context.getCmisVersion()"Do I need to declare
>> 1.1somewhere else?Thanks, and kind regards,GLoureiro
>
>
Ligações:
---------
[1] http://localhost:8080/yourapp/atom11
Re: Server with CMIS version 1.1
Posted by Florian Müller <fm...@apache.org>.
Hi GLoureiro,
You are probably using the wrong URL.
There should be five servlets in your web.xml - two for CMIS 1.0
(AtomPub and Web Services) and three for CMIS 1.1 (AtomPub, Web
Services, and Browser).
If connect with your client to one of the CMIS 1.1 URLs, the framework
should report the CMIS version 1.1 in the CallContext.
- Florian
> Hi all,
>
> Based on the file share example (v0.10.0 over Java), I'm building a
> CMIS
> server. My goal is to publish a version 1.1 compatible interface, so
> I've
> set CMIS version to 1.1:
>
> ... repoInfo.setCmisVersionSupported("1.1");
> repositoryInfo.setCmisVersion(CmisVersion.CMIS_1_1); ... typeManager
> = new
> TypeManager(CmisVersion.CMIS_1_1); ...but debugging I
> getalwaysversion 1.0
> from the context: "context.getCmisVersion()"Do I need to declare 1.1
> somewhere else?Thanks, and kind regards,GLoureiro