Where else should the localName be set for CMIS createDocument?
-
Monday, April 16, 2012 6:16 PM
Here's part of the xml that gets created when I call createDocument:
<?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<createDocument xmlns="http://docs.oasis-open.org/ns/cmis/messaging/200908/">
<repositoryId>e5b2c8ef-5151-4678-bb98-87c4f7824ee2</repositoryId>
<properties>
<propertyId xmlns="http://docs.oasis-open.org/ns/cmis/core/200908/" propertyDefinitionId="cmis:objectTypeId" localName="cmis:objectTypeId
" queryName="cmis:objectTypeId">
<value>document</value>
</propertyId>
<propertyString xmlns="http://docs.oasis-open.org/ns/cmis/core/200908/" propertyDefinitionId="cmis:name" localName="cmis:name" displayNam
e="3pages.pdf" queryName="cmis:name">
<value>3pages.pdf</value>
</propertyString>
</properties>
<folderId>-1</folderId>
<contentStream>
<length>41673</length>
<mimeType>application/pdf</mimeType>
<filename>3pages.pdf</filename>
<stream>
<xop:Include xmlns:xop="http://www.w3.org/2004/08/xop/include" href="cid:http%3A%2F%2Ftempuri.org%2F1%2F634698393827196501"/>
</stream>
</contentStream>
<versioningState>none</versioningState>
<policies xsi:nil="true"/>
<addACEs>
<permission xmlns="http://docs.oasis-open.org/ns/cmis/core/200908/">
<principal/>
<permission>cmis:read</permission>
<direct>false</direct>
</permission>
<permission xmlns="http://docs.oasis-open.org/ns/cmis/core/200908/">
<principal>
<principalId>Home Owners</principalId>
</principal>
<permission>cmis:all</permission>
<direct>false</direct>
</permission>
<permission xmlns="http://docs.oasis-open.org/ns/cmis/core/200908/">
<direct>false</direct>
</permission>
<permission xmlns="http://docs.oasis-open.org/ns/cmis/core/200908/">
<direct>false</direct>
</permission>
</addACEs>
<removeACEs/>
<extension/>
</createDocument>
</s:Body>
</s:Envelope>
the response I get back from my Sharepoint 2010 server which has an enterprise license is:
<?xml version="1.0"?>
<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body>
<s:Fault>
<faultcode>s:constraint</faultcode>
<faultstring>LocalName MUST be specified when createDocument. </faultstring>
<detail>
<cmisFault xmlns="http://docs.oasis-open.org/ns/cmis/messaging/200908/" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<code>409</code>
<message>LocalName MUST be specified when createDocument. </message>
<type>constraint</type>
</cmisFault>
</detail>
</s:Fault>
</s:Body>
</s:Envelope>
Should I be setting localName on some other object other than on the properties? Does Sharepoint have a required localName that I'm not setting correctly?

