12-27-2007 10:58 AM
package org.alfresco.sample.webservice;
import org.alfresco.webservice.repository.*;
import org.alfresco.webservice.types.*;
import org.alfresco.webservice.util.*;
import java.io.*;
import java.net.*;
import org.alfresco.webservice.util.*;
public class Call2
{
public static void main(String[] args)
throws Exception
{
AuthenticationUtils.startSession("admin","admin");
String ticket=AuthenticationUtils.getTicket();
try
{
try
{
URL url= new URL("http://localhost:8080/alfresco/service/api/javascript/debugger?alf_ticket='+ticket);
URLConnection uc = url.openConnection();
BufferedReader in = new BufferedReader(new InputStreamReader(uc.getInputStream()));
String inputLine;
while ((inputLine = in.readLine()) != null)
System.out.println(inputLine);
in.close();
}catch(IOException e)
{
System.out.println("Error"+e);
}
}
finally
{
AuthenticationUtils.endSession();
}
}
}
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Alfresco Javascript Debugger</title>
<link rel="stylesheet" href="/alfresco/css/main.css" TYPE="text/css">
</head>
<body>
<form action="/alfresco/service/api/javascript/debugger" method="post">
<input type="hidden" name="visible" value="true">
<table>
<tr>
<td><img src="/alfresco/images/logo/AlfrescoLogo32.png" alt="Alfresco" /></td>
<td><nobr><span class="mainTitle">Alfresco Javascript Debugger</span></nobr></td>
</tr>
<tr><td><td>Alfresco Community Network v2.1.0 (482)
<tr><td><td>Currently disabled.
<input type="submit" name="submit" value="Enable">
</table>
</form>
</body>
</html>
12-28-2007 04:25 AM
12-28-2007 09:58 AM
12-28-2007 01:39 PM
12-29-2007 02:54 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.