Hi Slawas,
to track your proposal, please open an issue here:
https://issues.apache.org/jira/projects/CMIS
I'm a bit reluctant to make this change because I don't know its
side-effects. In some environments, OpenCMIS is production for almost 10
years and this may (or may not) break things.
Apart from that, you may consider not using the Web Services binding at
all. Although the CMIS specs says that servers should provide all
bindings, I can't recommend it because the Web Service binding is much
slower and requires much more overhead than the other bindings.
- Florian
Welcome,
I'm new on the mail list, and sorry if my post seems to be too pert,
but i have some proposal to change in the project. I think that it is
good idea to remove JAXB generation to one package
org.apache.chemistry.opencmis.commons.impl.jaxb.
Why? Because it does not work in my project :)
I'm author of little product (in Poland) called Mercury. This is
server of services to manage any objects some like Elastic Search, but
to serve more businses services. So, three days ago, I came up with
the idea to implement CMIS services. I thought it was nothing
difficult and I started to create a service template. And first day,
after first mock implementation, in test I had error
"java.lang.IllegalArgumentException: Object ID property not set!".
Why? Today I know. In my project I have dependency to MOXy JAXB (I
can't remove it, because other elements had dependency to this).
Summary: in my CMIS services was generated wrong namespace for
'properties':
….
<ns1:getObjectResponse
xmlns:ns1="http://docs.oasis-open.org/ns/cmis/messaging/200908/"
xmlns:ns0="http://docs.oasis-open.org/ns/cmis/core/200908/">
<ns1:object>
<ns0:properties>
<ns1:propertyId propertyDefinitionId="cmis:objectId">
<ns0:value>testRoot</ns0:value>
</ns1:propertyId>
....
This is because all objects were generated in one package, and you can
not set multiple namespaces for one package.
I commented in pom.xml of chemistry-opencmis-commons-impl:
<!--
<extraarg>-p</extraarg>
<extraarg>org.apache.chemistry.opencmis.commons.impl.jaxb</extraarg>
-->
All objects are generated in three different packages:
org.oasis_open.docs.ns.cmis.core._200908
org.oasis_open.docs.ns.cmis.messaging._200908
org.oasis_open.docs.ns.cmis.ws._200908
I made the necessary corrections in all project elements indicating
new classes and build all project:
mvn clean install
[INFO]
------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Apache Chemistry OpenCMIS .......................... SUCCESS [
2.970 s]
[INFO] OpenCMIS Commons API ............................... SUCCESS [
4.785 s]
[INFO] OpenCMIS Commons Implementation .................... SUCCESS [
34.133 s]
[INFO] OpenCMIS Client API ................................ SUCCESS [
2.086 s]
[INFO] OpenCMIS Client Bindings Implementation ............ SUCCESS [
6.310 s]
[INFO] OpenCMIS Client Implementation ..................... SUCCESS [
6.285 s]
[INFO] OpenCMIS Server Support ............................ SUCCESS [
6.189 s]
[INFO] OpenCMIS Server Implementation ..................... SUCCESS [
8.618 s]
[INFO] OpenCMIS Server Async Implementation ............... SUCCESS [
0.933 s]
[INFO] OpenCMIS Server Implementation WAR packaging ....... SUCCESS [
1.713 s]
[INFO] OpenCMIS InMemory Server WAR packaging ............. SUCCESS [
8.691 s]
[INFO] OpenCMIS FileShare Server Implementation ........... SUCCESS [
2.271 s]
[INFO] OpenCMIS Server Archetype .......................... SUCCESS [
7.222 s]
[INFO] OpenCMIS Server Extension Archetype ................ SUCCESS [
4.320 s]
[INFO] OpenCMIS Bridge WAR packaging ...................... SUCCESS [
1.950 s]
[INFO] OpenCMIS Test Compatibility Kit .................... SUCCESS [
1.787 s]
[INFO] OpenCMIS Full Integration Tests .................... SUCCESS
[04:19 min]
[INFO] OpenCMIS Workbench ................................. SUCCESS [
17.069 s]
[INFO] OpenCMIS OSGi Client Wrapper ....................... SUCCESS [
1.283 s]
[INFO] OpenCMIS Android Client ............................ SUCCESS [
4.902 s]
[INFO] OpenCMIS Assemblies Distribution ................... SUCCESS [
0.435 s]
[INFO]
------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO]
------------------------------------------------------------------------
[INFO] Total time: 06:25 min
[INFO] Finished at: 2019-02-05T18:25:55+01:00
[INFO] Final Memory: 99M/1152M
[INFO]
------------------------------------------------------------------------
Added new libreres to my project and it works!!!! Now I have response:
….
<ns1:getObjectResponse
xmlns:ns1="http://docs.oasis-open.org/ns/cmis/messaging/200908/"
xmlns:ns0="http://docs.oasis-open.org/ns/cmis/core/200908/">
<ns1:object>
<ns0:properties>
<ns0:propertyId propertyDefinitionId="cmis:objectId">
<ns0:value>testRoot</ns0:value>
</ns0:propertyId>
....
So, what do You think about it? I know, maybe I'm only one, but, maybe
not.
Best Regards
Slawas
---
Ta wiadomość została sprawdzona na obecność wirusów przez
oprogramowanie antywirusowe Avast.
https://www.avast.com/antivirus