AnsweredAssumed Answered

Apache CXf 2.2.6 and Alfresco 3.3g compatibility

Question asked by nikes on Jul 16, 2010
Latest reply on Jul 23, 2010 by nikes
Hi All,

I was using Alfresco 3.2r2 community and Apache CXF 2.2.6 generated stub classes for CMIS application.

I am connecting to Alfresco to 3.3g, but current CMIS application throws exception for marshaling/unmarshaling elements.


org.apache.cxf.interceptor.Fault: Unmarshalling Error: unexpected element (uri:"http://docs.oasis-open.org/ns/cmis/core/200908/", local:"supportedPermissions"). Expected elements are <{http://docs.oasis-open.org/ns/cmis/core/200908/}propagation>,<{http://docs.oasis-open.org/ns/cmis/core/200908/}mapping>,<{http://docs.oasis-open.org/ns/cmis/core/200908/}permissions>

Also When I generate stub classes using Apache CXF wsdl2java for Alfresco 3.3g CMIS wsdl, method definition
asks for JAXBElement<Boolean> instead of Boolean data type.

Do I have to generate stub classes every time we migrate from one version of alfresco to another?

Please guide how can I generate stub classes without JAXBElement wrapper.

Thanks for any help.

Outcomes