cancel
Showing results for 
Search instead for 
Did you mean: 

exception while connecting to alfresco share repository?

madhurao
Champ in-the-making
Champ in-the-making
Hello Friends,

I have written code to connect Share Client repository(see below code) using WebService API but it giving an exception as org.alfresco.webservice.util.WebServiceException: Error starting session.
   at org.alfresco.webservice.util.AuthenticationUtils.startSession(AuthenticationUtils.java:94)
   at org.alfresco.sample.webservice.Test.main(Test.java:18)
Caused by: (404)Not Found

PSB code written to connect Repository:-
WebServiceFactory.setEndpointAddress("http://localhost:8080/share/api");
AuthenticationUtils.startSession("admin", "admin");

Is it possible to create sitepage, create discussion and create Links using webservice api?

Thanks,
Madhu
1 REPLY 1

mikeh
Star Contributor
Star Contributor
Share doesn't expose a WebService. Connect directly to the Repository instead (at /alfresco)

Mike