Skip to main content

Posts

Showing posts with the label json-rpc

Json-RPC Method from iOS to Android

I have a java webservice, with some method. The webservice methods are in this form: @Webservice(paramNames = {"email", "password", "stayLogged", "idClient"}, public Response startSession(String email, String password, Boolean stayLogged, String idClient) throws Exception { boolean rC = stayLogged != null && stayLogged.booleanValue(); UserService us = new UserService(); User u = us.getUsersernamePassword(email, password); if (u == null || u.getActive() != null && !u.getActive().booleanValue()) { return ErrorResponse.getAccessDenied(id, logger); } InfoSession is = null; String newKey = null; while (newKey == null) { newKey = UserService.md5(Math.random() + " " + new Date().getTime()); if (SessionManager.get(newKey) != null) { newKey = null; } else { is = new InfoSession(u, rC, newKey); if (idClient != null && id

Json-RPC Method from iOS to Android

I have a java webservice, with some method. The webservice methods are in this form: @Webservice(paramNames = {"email", "password", "stayLogged", "idClient"}, public Response startSession(String email, String password, Boolean stayLogged, String idClient) throws Exception { boolean rC = stayLogged != null && stayLogged.booleanValue(); UserService us = new UserService(); User u = us.getUsersernamePassword(email, password); if (u == null || u.getActive() != null && !u.getActive().booleanValue()) { return ErrorResponse.getAccessDenied(id, logger); } InfoSession is = null; String newKey = null; while (newKey == null) { newKey = UserService.md5(Math.random() + " " + new Date().getTime()); if (SessionManager.get(newKey) != null) { newKey = null; } else { is = new InfoSession(u, rC, newKey); if (idClient != null && id