}
public String checkTicketStatus(String ticket, String accountId) throws RemoteException {
String result = "-1";
String endpoint = SystemParam.getInstance().getProperty("external.portal.endpoint");
SSOAccountServiceStub client = new SSOAccountServiceStub(endpoint);
SSOAccountServiceStub.FindportalSecurity request = new SSOAccountServiceStub.FindportalSecurity();
request.setIn0(SystemParam.getInstance().getProperty("external.portal.sid"));
request.setIn1(SystemParam.getInstance().getProperty("external.portal.pwd"));
request.setIn2(SystemParam.getInstance().getProperty("external.portal.code"));
request.setIn3(ticket);
request.setIn4(SystemParam.getInstance().getProperty("external.portal.name"));
request.setIn5(accountId);
SSOAccountServiceStub.FindportalSecurityResponse response = client.findportalSecurity(request);
result = response.getOut();
return result;
}