chemistry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Miller (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CMIS-362) Cannot checkout documents from SharePoint 2010 repository using REST
Date Tue, 14 Jun 2011 19:46:47 GMT

    [ https://issues.apache.org/jira/browse/CMIS-362?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13049367#comment-13049367
] 

David Miller commented on CMIS-362:
-----------------------------------

>From MS Support, here is a working Atom request to checkout an SP2010 document:

<?xml version='1.0' encoding='UTF-8'?> 
<atom:entry xmlns:atom='http://www.w3.org/2005/Atom'  
		xmlns:cmis='http://docs.oasis-open.org/ns/cmis/core/200908/'   
		xmlns:cmisra='http://docs.oasis-open.org/ns/cmis/restatom/200908/'>   
	<atom:id>urn:uuid:00000000-0000-0000-0000-00000000000</atom:id>   
	<atom:title></atom:title>  
	<atom:updated>2011-05-03T15:23:45Z</atom:updated>   
	<cmisra:object xmlns:ns3='http://docs.oasis-open.org/ns/cmis/messaging/200908/'>  

		<cmis:objectId>1-3584</cmis:objectId>  
	</cmisra:object>  
</atom:entry>

The above request works against SP2010.  The request sent by OpenCMIS (which does not work
against SP2010) is as follows:

<?xml version='1.0' encoding='UTF-8'?> 
<atom:entry xmlns:atom='http://www.w3.org/2005/Atom'  
		xmlns:cmis='http://docs.oasis-open.org/ns/cmis/core/200908/'   
		xmlns:cmisra='http://docs.oasis-open.org/ns/cmis/restatom/200908/'>   
	<atom:id>urn:uuid:00000000-0000-0000-0000-00000000000</atom:id>   
	<atom:title></atom:title>  
	<atom:updated>2011-05-03T15:23:45Z</atom:updated>   
	<cmisra:object xmlns:ns3='http://docs.oasis-open.org/ns/cmis/messaging/200908/'>  

		<cmis:properties>  
			<cmis:propertyId propertyDefinitionId='cmis:objectId'>  
				<cmis:value>1-3584</cmis:value>  
			</cmis:propertyId>  
		</cmis:properties>  
	</cmisra:object>  
</atom:entry>

Hopefully this may be of some use to you in terms of working with SP2010 via REST.  As for
my project, we will probably switch to the WSDL bindings, since the OpenCMIS WSDL binding
seems to work as-is.

Thanks,
Dave



> Cannot checkout documents from SharePoint 2010 repository using REST
> --------------------------------------------------------------------
>
>                 Key: CMIS-362
>                 URL: https://issues.apache.org/jira/browse/CMIS-362
>             Project: Chemistry
>          Issue Type: Bug
>          Components: opencmis-client
>    Affects Versions: OpenCMIS 0.3.0
>            Reporter: David Miller
>
> Using Chemistry I can add a document to SharePoint 2010 via the AtomPub bindings.  Adding
the document gives me a Chemistry Document instance.  When I call checkOut() on this instance,
I get a "Bad Request" response (HTTP 400 status code), and the response body from SP 2010
is just the single word "documentId". The Chemistry exception is a CmisInvalidArgumentException.
> Does anybody have working code to checkout documents from SP2010?  I can't find any samples
online.
> Thanks,
> Dave

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message