cancel
Showing results for 
Search instead for 
Did you mean: 

Invalid repository id: calling getRepositoryInfo()

biswajitbiswal
Champ in-the-making
Champ in-the-making
Hi all,

Much to my surprise, I am getting an exception "Invalid repository ID" whereas I am sending a valid repository ID (courtesy: http://localhost:8080/alfresco/s/api/cmis.html).
Following is the code snippet for reference…

call.setOperationName(new QName("http://www.cmis.org/2008/05", "getRepositoryInfo"));
call.addParameter( "id",new QName("http://www.w3.org/2001/XMLSchema','string"),ParameterMode.IN);
call.setReturnType(   new QName("http://www.w3.org/2001/XMLSchema','string"));
….
String repID = "33405a73-54c4-4fcf-92c5-2a7bb4a4568f";
String ret = call.invoke(new Object[] {repID}).toString();


Strangely dynamic call (call.invoke) expects a service to have some parameters. So can't try getRepositories()

Any help will be highly appreciated.

thanks
Biswajit
1 REPLY 1

nikes
Champ on-the-rise
Champ on-the-rise
Hi Biswajit,

I am facing the same issue. Did you get success? Please share your solution.

Thanks
Nikesh