Package com.pccw.service.acrm

Examples of com.pccw.service.acrm.AcrmApi.login()


        HessianCAHProxyFactory.setCookieSeterName("Set-Cookie");
        try {
          AcrmApi api=proxyFactory.create(AcrmApi.class, url,new CRMCacheHandler(),new CRMAsynTaskExecuter<Object, Throwable>(),null,null);
          //api.login("guxuede", "123",new CRMTaskListener());
          //Thread.sleep(1000);
          api.login("guxuede", "123");
          System.out.println(GxdInputStream.getAccumulatTotalLength());
          api.getContacts(new CRMDefaultTaskListener<List<String>,Throwable>(){
            @Override
            public void onExecuteSuccess(Method method, Object[] args,List<String> result) {
              System.out.println("得到联系人列表:"+result);
View Full Code Here


        proxyFactory.setReadTimeout(3000);
        proxyFactory.setHessian2Reply(false);
        proxyFactory.setDebug(true);
        try {
          AcrmApi api=proxyFactory.create(AcrmApi.class, url);
          System.out.println(api.login("guxuede", "123"));
          //System.out.println(api.getContacts());
          //System.out.println(api.uglilyCode("hessian"));
          //System.out.println(api.getContacts());
          //System.out.println(api.logout());
    } catch (Exception e) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.