Ejemplo n.º 1
0
  public MessageElement validarDatosActivar(AltasUsuariosRequestTO requestTO)
      throws DAOException, SessionExpiredException {

    String xml = null;
    XMLDecode decoder = new XMLDecode();
    Map<String, String> params = new HashMap<String, String>();
    params.put("nip", requestTO.getNip());
    params.put("nipv", requestTO.getConfirm_nip());
    params.put("ndia", requestTO.getDia());
    params.put("nmes", requestTO.getMes());
    params.put("nano", requestTO.getAño());
    params.put("nombre", requestTO.getNombre());
    params.put("paterno", requestTO.getApellido_paterno());
    params.put("materno", requestTO.getApellido_materno());

    MessageElement msg = null;
    try {
      Connector con = ConnectorManager.getConnector(requestTO.getCuenta_cargo());
      xml = con.sendRequest(ALTAS_USUARIOS_VALIDACION, params);
      msg = decoder.buildMessageElement(xml);

    } catch (URISyntaxException e) {
      throw new DAOException(e);
    } catch (HttpException e) {
      throw new DAOException(e);
    } catch (IOException e) {
      throw new DAOException(e);
    } catch (XmlDecodeException e) {
      throw new DAOException(e);
    }

    return msg;
  }