1 public class MainTest extends TestCase {
2 public void testMain() throws CpbBusinessException {
3 Properties props = new Properties();
4 props.setProperty(NCLocator.SERVICEDISPATCH_URL,"http://172.16.0.36:8160/ServiceDispatcherServlet");
5 props.setProperty(NCLocator.TARGET_MODULE, "webbd");
6 nc.uap.cpb.org.itf.ICpUserQry cpuser = NCLocator.getInstance(props).lookup(nc.uap.cpb.org.itf.ICpUserQry.class);
7 CpUserVO[] cpu = cpuser.getAllUsers();
8 for(int i=0;i<cpu.length;i++){
9 CpUserVO sc = cpu[i];
10 System.out.print(sc.getUser_code() + " ");
11 System.out.println(sc.getUser_name());
12 }
13 System.out.println("-------------查询结束------------");
14 }
15 }