cancel
Showing results for 
Search instead for 
Did you mean: 

CMIS Discovery Service error...

srinid
Champ in-the-making
Champ in-the-making
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><wsseSmiley Frustratedecurity 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><wsseSmiley Tongueassword Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">admin</wsseSmiley Tongueassword></wsse:UsernameToken></wsseSmiley Frustratedecurity></soapenv:Header>
   <soapenv:Body>
      <ns:query>
         <ns:statement>select * from document</ns:statement>
         <!–Optional:–>
         <ns:searchAllVersions>false</ns:searchAllVersions>
         <!–Optional:–>
         <nsSmiley TongueageSize>10</nsSmiley TongueageSize>
         <!–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>
<wsseSmiley Frustratedecurity 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></wsseSmiley Frustratedecurity></soap:Header><soap:Body><soap:Fault><faultcode>soapSmiley Frustratederver</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?
1 REPLY 1

openpj
Elite Collaborator
Elite Collaborator
I suggest you to move this thread in the Alfresco CMIS discussion forum:
http://forums.alfresco.com/en/viewforum.php?f=45