return new CFMLProxy().invokeBody(OpenAMFCaster.getInstance(),null,servlet.getServletContext(),servlet.getServletConfig(), req, rsp, request.getServiceName(), request.getServiceMethodName(), request.getParameters());
}
catch (Exception e) {
e.printStackTrace();
rsp.setStatus(200);
AMFError error=new AMFError();
e.setStackTrace(e.getStackTrace());
error.setDescription(e.getMessage());
if(e instanceof PageException){
PageException pe = (PageException)e;
error.setCode(pe.getErrorCode());
error.setCode(pe.getErrorCode());
error.setDetails(pe.getDetail());
}
return error;
}
}