02-08-2010 10:08 PM
// Get WebScript Service Endpoint
String wsUrl = this.getResizeimagewebscripturl();
if (wsUrl != null && wsUrl.length() != 0)
{
// Prepare HTTP Connection
HttpClient client = new HttpClient();
GetMethod get = new GetMethod(wsUrl);
// Add request headers
get.addRequestHeader( "Cache-control", "no-cache" );
// Make sure ticket is the first parameter
NameValuePair[] kvps =
new NameValuePair[]{new NameValuePair("ticket", ticket),
new NameValuePair("ref", sourcePath),
get.setQueryString(kvps);
try {
// execute the GET
…
} catch( Throwable err ) {
// throw exception
} finally {
// release any connection resources used by the method
}
}
resizeimagewebscripturl=http://localhost:8080/alfresco/wcservice/au/com/seedim/imagemanagement/resize
resizeimagewebscripturl=/alfresco/wcservice/au/com/seedim/imagemanagement/resize
02-15-2010 01:07 AM
02-15-2010 01:32 AM
02-15-2010 06:48 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.