06-12-2009 09:32 AM
10-03-2017 05:06 AM
Thanks for highlighting the issue.
well did u find the solution for this issue?
07-14-2009 06:27 PM
"/api/login/ticket/"+p_TicketSession + "?alf_ticket="+p_TicketSession
is working. I have submitted another URL with my ticket and the ressource is not anymore accessible. So it is working 🙂10-06-2010 04:33 AM
10-06-2010 05:25 AM
public void disconnect(String p_TicketSession,
String p_Login,
String p_Password) {
// Alfresco is over HTTP
Client client = new Client(Protocol.HTTP);
// URL for Alfresco (I'm using an external servlet so I have to get the URL to reach Alfresco)
String urlRequete = getBaseUrlServicesAlfresco() +
"/api/login/ticket/"+p_TicketSession +
"?"+PARAM_TICKET+"="+p_TicketSession;
// NOTE HERE THE METHOD USED FOR REST CALL : DELETE and not POST or GET
Request request = new Request(Method.DELETE, urlRequete);
// Calling
Response reponse = client.handle(requete);
Status status = reponse.getStatus();
int returnCode = status.getCode();
// Checking return code
if ( returnCode == SUCCESS ) {
logDebug("Disconnection succeeded");
} else {
logDebug("Disconnection failed. Error code is : " + status.getCode());
throw new RuntimeException("Disconnection failed with http error code "+ status.getCode());
}
}
10-06-2010 08:11 AM
200
10-06-2010 09:07 AM
10-06-2010 09:10 AM
10-06-2010 09:19 AM
01-19-2011 04:29 PM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.