146147148149150151152153154155156
params.add(notifyOnUpdates); String errMessage; try { errMessage = (String)cl.execute("accounts.registerAccount", params); } catch (XmlRpcException e) { throw new ServerServiceException(MSG_COM_PROBLEM, e); } catch (Exception e) {
177178179180181182183184185186187
XmlRpcHandler cl = getClient(); Vector params = new Vector(0); try { String response = (String)cl.execute("ping.ping", params); online = "pong".equals(response); } catch (XmlRpcException e) { // Service is offline } catch (Exception e)
229230231232233234235236237238239
} } try { cl.execute("ping.ping1", params); } catch (XmlRpcException e) { throw new ServerServiceException(MSG_COM_PROBLEM, e); } catch (Exception e) {
267268269270271272273274275276277
params.add(opmlBytes); String errMessage; try { errMessage = (String)cl.execute("sync.storeInUtf8", params); userId = getUserId(sessionId); } catch (XmlRpcException e) { throw new ServerServiceException(MSG_COM_PROBLEM, e); } catch (Exception e)
321322323324325326327328329330331
params.add(sessionId); params.add(prefs); try { cl.execute("sync.storePrefs", params); } catch (XmlRpcException e) { throw new ServerServiceException(MSG_COM_PROBLEM, e); } catch (Exception e) {
355356357358359360361362363364365
params.add(OPML_VERSION); byte[] opmlBytes; try { opmlBytes = (byte[])cl.execute("sync.restoreInUtf8", params); } catch (XmlRpcException e) { throw new ServerServiceException(MSG_COM_PROBLEM, e); } catch (Exception e) {
391392393394395396397398399400401
params.add(sessionId); Map prefs; try { prefs = (Map)cl.execute("sync.restorePrefs", params); } catch (XmlRpcException e) { throw new ServerServiceException(MSG_COM_PROBLEM, e); } catch (Exception e) {
425426427428429430431432433434435
params.add(password); Integer idInt; try { idInt = (Integer)cl.execute("accounts.getSessionId", params); } catch (XmlRpcException e) { throw new ServerServiceException(MSG_COM_PROBLEM, e); } catch (Exception e) {
473474475476477478479480481482483
params.add(StringUtils.toUTF8(aLink.toString())); Vector tags; try { tags = (Vector)cl.execute("tags.getTags", params); } catch (XmlRpcException e) { throw new ServerServiceException(MSG_COM_PROBLEM, e); } catch (Exception e) {
513514515516517518519520521522523
params.add(StringUtils.toUTF8(aExtended)); String error; try { error = (String)cl.execute("tags.tag", params); } catch (XmlRpcException e) { throw new ServerServiceException(MSG_COM_PROBLEM, e); } catch (Exception e) {