AnsweredAssumed Answered

CMIS Discovery Service error...

Question asked by srinid on Sep 14, 2009
Latest reply on Sep 24, 2009 by openpj
I'm getting "Invalid respository id" error when calling Query operation on DiscoveryService despite RespositoryId being an optional field.

I'm using SoapUI tool to test the webservice.

Request
——–
POST http://a063847:8080/alfresco/cmis/DiscoveryService HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: ""
User-Agent: Jakarta Commons-HttpClient/3.1
Host: a063847:8080
Content-Length: 1377

<soapenv:Envelope xmlns:ns="http://docs.oasis-open.org/ns/cmis/core/200901" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
   <soapenv:Header><wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"><wsu:Timestamp wsu:Id="Timestamp-84" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><wsu:Created>2009-09-14T02:29:20.301Z</wsu:Created><wsu:Expires>2009-09-14T03:52:40.301Z</wsu:Expires></wsu:Timestamp><wsse:UsernameToken wsu:Id="UsernameToken-83" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"><wsse:Username>admin</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">admin</wsse:Password></wsse:UsernameToken></wsse:Security></soapenv:Header>
   <soapenv:Body>
      <ns:query>
         <ns:statement>select * from document</ns:statement>
         <!–Optional:–>
         <ns:searchAllVersions>false</ns:searchAllVersions>
         <!–Optional:–>
         <ns:pageSize>10</ns:pageSize>
         <!–Optional:–>
         <ns:skipCount>0</ns:skipCount>
         <!–Optional:–>
         <ns:returnAllowableActions>false</ns:returnAllowableActions>
      </ns:query>
   </soapenv:Body>
</soapenv:Envelope>


Response
———-
HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Content-Type: text/xml;charset=UTF-8
Content-Length: 1093
Date: Mon, 14 Sep 2009 02:29:20 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-7444574"><wsu:Created xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2009-09-14T02:29:20.322Z</wsu:Created><wsu:Expires xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2009-09-14T02:34:20.322Z</wsu:Expires></wsu:Timestamp></wsse:Security></soap:Header><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Invalid repository id</faultstring><detail><ns2:cmisFault xmlns:ns1="http://docs.oasis-open.org/ns/cmis/core/200901" xmlns:ns2="http://docs.oasis-open.org/ns/cmis/messaging/200901"><ns2:type>invalidArgument</ns2:type><ns2:code>0</ns2:code><ns2:message>Invalid repository id</ns2:message></ns2:cmisFault></detail></soap:Fault></soap:Body></soap:Envelope>


Could somone please advise where I'm going wrong?

Outcomes