As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
<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>
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>
You have to invoke repositoryService.getRepositories() and then you need to iterate the first result of this list getting the repositoryInfo.
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…………
<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 :D