public void synTelentToCosme(long passportId) throws Exception { if(passportId == 0) { return; } HttpClient client = new HttpClient(new SimpleHttpConnectionManager(false)); SystemConfig cfg = (SystemConfig)EnvUtils.getEnv().getBean(SystemConfig.class); String url=cfg.getSnyTelenturl()+"?doAction=synPopUser&accountId="+passportId+"&typeId=29"; System.out.println("url================"+url); PostMethod post = new PostMethod(url); try { client.executeMethod(post); } catch (Exception e) { throw e; } finally { post.releaseConnection(); } }
|
|