Hi, I have a problem with creating document with CMIS WS Binding in Alfresco Labs 3.0b. I tried some methods in CMIS API in Java and it works; for example objectService.getProperties(), repositoryService.getSo I decided to deploy my own model dynamcally to the Alfresco. Model worked with Web client so everything seems to work in Alfresco.Next I wanted to create some new document of type as my deployed model, but there were a lot of runtime errors like: "Namespace is not recognized…"I wanted to make things simpler so I removed my own model from Alfrresco and try to make new document of some standart type, but I have error like this: "The type is not supported by this service: {http://www.alfresco.org/model/cmis/0.5}Document"There is code:
// properties
CmisPropertiesType createCmisPropertiesType = of.createCmisPropertiesType();
List<CmisProperty> properties = createCmisPropertiesType.getProperty();
CmisPropertyString property = of.createCmisPropertyString();
property.setName("ObjectTypeId");
property.setValue("[color=#FFBF00]Document[/color]");
CmisPropertyString property2 = of.createCmisPropertyString();
property2.setName("Name");
property2.setValue("Some name");
properties.add(property);
properties.add(property2);
// content
CmisContentStreamType cmisContentStreamType = of.createCmisContentStreamType();
DataHandler handler = new DataHandler(new InpuStreamDataSource(new FileInputStream(new File("c:/a.txt")),"a.txt"));
cmisContentStreamType.setStream(handler);
cmisContentStreamType.setFilename("a.txt");
// create document - does not work :(
objectService.createDocument(repoId,"[color=#FFBF00]Document[/color]",createCmisPropertiesType, rootFolderId, cmisContentStreamType, EnumVersioningState.MAJOR);
I also try to change value from "Document" to some others like "Content" but there was an exacaption like this: Malformed type id 'Content'Can anybode help me what am I making bad?Thank you in advance.