Examples of sendReceiveMessage()


Examples of jifx.commons.link.ILink.sendReceiveMessage()

  public void prepare(Context ctx) throws ParticipantException, ValidatorException {
      try {
        IMessage msg = ctx.getOriginalMessage();
        ILink link = LinkFactory.getFactory().getLinkChannel(properties.get("link"));
        IMessage res = link.sendReceiveMessage(msg);
        ctx.put("RESPONSE", res);
      } catch (ComunicationException e) {
        e.printStackTrace();
      }
  }
View Full Code Here

Examples of jifx.commons.link.ILink.sendReceiveMessage()

    ILink lnk = lf.getLinkChannel(properties.get("link"));
    try {
      IMessage message = ctx.getOriginalMessage();
      logger.info("Send message: "+message.toString());
      IMessage msg = lnk.sendReceiveMessage(message);
      logger.info("Receive message: "+msg.toString());
      ctx.put("responsePOS", msg);
    } catch (ComunicationException e) {
      throw new ParticipantException("Prepare Error: " + e.toString());
    }
View Full Code Here

Examples of jifx.commons.link.ILink.sendReceiveMessage()

  public void prepare(Context ctx) throws ParticipantException, ValidatorException {
      try {
    IMessage msg = ctx.getOriginalMessage();
    ILink link = LinkFactory.getFactory().getLinkChannel(properties.get("link"));
    IMessage res = link.sendReceiveMessage(msg);
    ctx.put("RESPONSE", res);
      } catch (ComunicationException e) {
    e.printStackTrace();
      }
     
View Full Code Here

Examples of jifx.commons.link.ILink.sendReceiveMessage()

        String term = (String) msg.getElement("41");
        String amount = (String) msg.getElement("4");
        String card = (String) msg.getElement("35");       
        IMessage messageIFX = IFXMessageFactory.createMessageCompraMinRequest(id, term, amount, card);
   
        IMessage res = link.sendReceiveMessage(messageIFX);
        ctx.put("responseIFX", res);
      } catch (ComunicationException e) {
        e.printStackTrace();
      }
  }
View Full Code Here

Examples of jifx.commons.link.ILink.sendReceiveMessage()

        String memo = msgOrig.getElement("BankSvcRq.DebitAddRq.DebitInfo.CompositeCurAmt.Memo").toString();
        String[] reg = memo.split("@");
        IMessage msgISO = ISOMessageFactory.createPOSRequest(Long.valueOf(card), 1, 1*Integer.valueOf(reg[1]), Integer.valueOf(id), Integer.valueOf(term));
        //IMessage msgCabal = IFXMessageFactory.createMessageCompraMinRequest(id, term, String.valueOf(1*Integer.valueOf(reg[1])), card);
        ILink ilink = LinkFactory.getFactory().getLinkChannel(link);
        IMessage res = ilink.sendReceiveMessage(msgISO);
        ctx.put("DescuentoParticipant_RES", res);             
      } catch (ComunicationException e) {
          throw new ParticipantException(e.getMessage());
      }
  }
View Full Code Here

Examples of jifx.commons.link.ILink.sendReceiveMessage()

                String spName = this.getProperties().get("SPName");
                String link = this.getProperties().get("link");
               
                IMessage msgAncel = IFXMessageFactory.createMessageCustInqRequest(id, term, spName, org, reg[0]);
                ILink ilink = LinkFactory.getFactory().getLinkChannel(link);
                IMessage res = ilink.sendReceiveMessage(msgAncel);
               
                String ci = res.getElement("BaseSvcRs.CustInqRs.CustRec.CustInfo.PersonInfo.GovIssueIdent.IdentSerialNum").toString();               
                ctx.put("CI", ci);
                   
//                Object tmp = msg.getElement("BankSvcRq.DebitAddRq.CustId.CardLogicalData.CardEmbossNum");
View Full Code Here

Examples of jifx.commons.link.ILink.sendReceiveMessage()

                  ctx.put("ClientTerminalSeqId", matcher.group(1));       
   
                  IMessage iso = ISOMessageFactory.createPOSRequest(5896572104578400l, 1, 10, Integer.valueOf(matcher.group(1)));
                 
                    ILink link = LinkFactory.getFactory().getLinkChannel(properties.get("link"));
                    IMessage res = link.sendReceiveMessage(iso);
                    ctx.put("RESPONSE", res);
                    System.out.println("Respuesta: " + res);
                } else
              throw new ParticipantException("El valor en el campo BankSvcRq.DebitAddRq.MsgRqHdr.ClientTerminalSeqId no es num�rico.");
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.