Package org.springside.examples.showcase.ws.server.result

Examples of org.springside.examples.showcase.ws.server.result.GetAllUserResult


    //生成clientProxy
    UserWebService userWebService = (UserWebService) proxyFactory.create();

    //调用UserWebService
    GetAllUserResult result = userWebService.getAllUser();
    assertTrue(result.getUserList().size() > 0);
  }
View Full Code Here


   * 测试明文密码, 用<jaxws:client/>创建的Client.
   */
  @Test
  public void getAllUserWithPlainPassword() {
    UserWebService userWebService = (UserWebService) applicationContext.getBean("userServiceWithPlainPassword");
    GetAllUserResult result = userWebService.getAllUser();
    assertTrue(result.getUserList().size() > 0);
  }
View Full Code Here

      for (User userEntity : userEntityList) {
        userDTOList.add(dozer.map(userEntity, UserDTO.class));
      }

      GetAllUserResult result = new GetAllUserResult();
      result.setUserList(userDTOList);
      return result;
    } catch (RuntimeException e) {
      logger.error(e.getMessage(), e);
      return WSResult.buildDefaultErrorResult(GetAllUserResult.class);
    }
View Full Code Here

TOP

Related Classes of org.springside.examples.showcase.ws.server.result.GetAllUserResult

Copyright © 2018 www.massapicom. 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.