03-12-2010 04:50 AM
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://docs.oasis-open.org/ns/cmis/messaging/200908/">
<soapenv:Header/>
<soapenv:Body>
<ns:getProperties>
<ns:repositoryId>?</ns:repositoryId>
<ns:objectId>?</ns:objectId>
<ns:filter>?</ns:filter>
<ns:extension>
<!–You may enter ANY elements at this point–>
</ns:extension>
</ns:getProperties>
</soapenv:Body>
</soapenv:Envelope>
how and where can I retrieve the information of repositoryId and objectId? :?: 03-12-2010 05:05 AM
03-12-2010 05:17 AM
Anyway, you can retrieve the repositoryId and the rootFolderId using the RepositoryService getting the RepositoryInfo object for each repository exposed by CMIS
The ObjectId is the nodeRef of the object and you need to execute a search to retrieve all the IDs.
Hope this helps.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://docs.oasis-open.org/ns/cmis/messaging/200908/">
<soapenv:Header/>
<soapenv:Body>
<ns:getRepositoryInfo>
<ns:repositoryId>?</ns:repositoryId>
<ns:extension>
<!–You may enter ANY elements at this point–>
</ns:extension>
</ns:getRepositoryInfo>
</soapenv:Body>
</soapenv:Envelope>
HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=UTF-8
Content-Length: 1060
Date: Fri, 12 Mar 2010 10:34:29 GMT
Connection: close
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Timestamp-13457779"><wsu:Created xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2010-03-12T10:34:29.712Z</wsu:Created><wsu:Expires xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2010-03-12T10:39:29.712Z</wsu:Expires></wsu:Timestamp></wsse:Security></soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Invalid repository id</faultstring><detail><cmisFault xmlns="http://docs.oasis-open.org/ns/cmis/messaging/200908/" xmlns:ns2="http://docs.oasis-open.org/ns/cmis/core/200908/"><type>invalidArgument</type>0<message>Invalid repository id</message></cmisFault></detail></soap:Fault></soap:Body></soap:Envelope>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Header>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsu:Timestamp wsu:Id="Timestamp-13457779" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsu:Created>2010-03-12T10:34:29.712Z</wsu:Created>
<wsu:Expires>2010-03-12T10:39:29.712Z</wsu:Expires>
</wsu:Timestamp>
</wsse:Security>
</soap:Header>
<soap:Body>
<soap:Fault>
<faultcode>soap:Server</faultcode>
<faultstring>Invalid repository id</faultstring>
<detail>
<cmisFault xmlns="http://docs.oasis-open.org/ns/cmis/messaging/200908/" xmlns:ns2="http://docs.oasis-open.org/ns/cmis/core/200908/">
<type>invalidArgument</type>
0
<message>Invalid repository id</message>
</cmisFault>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
03-12-2010 06:09 AM
03-12-2010 06:19 AM
You have to invoke repositoryService.getRepositories() and then you need to iterate the first result of this list getting the repositoryInfo.
03-12-2010 09:26 AM
06-05-2013 06:29 AM
03-12-2010 12:00 PM
I succeed to retrieve the repository ID throwing the getRepositories request of the RepositoryServicePort (I don't know why the previous time I tried to do so I didn't succeed); Now I'm able to get also repository info.
what I need now is to retrieve the ID of the document I need to set properties; I'm trying…………
03-17-2010 01:02 PM
<ns1:propertyId propertyDefinitionId="custom:Property" localName="?" displayName="?" queryName="?">
<!–Zero or more repetitions:–>
<ns1:value>VALUE</ns1:value>
[code]
hope this post will help other people with the same issue 😄
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.