Examples of DepAcctTrnInqRs_Type


Examples of org.ifxforum.xsd._1.DepAcctTrnInqRs_Type

*/
public class TrnInqService implements TrninqInterface {

    public DepAcctTrnInqRs_Type DepAcctTrnInq(DepAcctTrnInqRq_Type req) throws RemoteException {

        DepAcctTrnInqRs_Type response = _1Factory.INSTANCE.createDepAcctTrnInqRs_Type();

        response.setStatus(_1Factory.INSTANCE.createStatus_Type());
        response.getStatus().setStatusCode(1);
        response.getStatus().setStatusDesc("the description associated with the code 1");
        AdditionalStatus_Type addStatus = _1Factory.INSTANCE.createAdditionalStatus_Type();
        addStatus.setServerStatusCode("STATUS_OK");
        addStatus.setSeverity("SEVERITY_WARNING");
        response.getStatus().getAdditionalStatus().add(addStatus);

        response.setDepAcctId(_1Factory.INSTANCE.createDepAcctId_Type());
        response.getDepAcctId().setBankInfo(_1Factory.INSTANCE.createBankInfo_Type());
        response.getDepAcctId().getBankInfo().setBranchId("Concord_1");
        response.getDepAcctId().getBankInfo().setBankId("Dufferin hill");
        response.getDepAcctId().getBankInfo().setBankIdType("Concord branch");
        response.getDepAcctId().getBankInfo().setBranchName("A Happy branch");
        response.getDepAcctId().getBankInfo().setCity("Toronto");

        response.getDepAcctId().getBankInfo().setCountry("Canada");
        response.getDepAcctId().getBankInfo().setName("Info for A Happy branch");
        response.getDepAcctId().getBankInfo().setPostalCode("L1LL1L");
        response.getDepAcctId().getBankInfo().setStateProv("ON");

        List records = response.getDepAcctTrnRec();
        // Record1
        DepAcctTrnRec_Type trnRec1 = null;
        BankAcctTrnRec_Type baTrnRec1 = null;
        long maxRec = req.getTrnCountLimit().getCount();
        for (int i = 0; i < maxRec; i++) {
View Full Code Here

Examples of org.ifxforum.xsd._1.DepAcctTrnInqRs_Type

        TrnCountLimit_Type trnCountLimit = _1Factory.INSTANCE.createTrnCountLimit_Type();
        depAcctTrnInqRequest.setTrnCountLimit(trnCountLimit);
        depAcctTrnInqRequest.getTrnCountLimit().setCount(2);

        try {
            DepAcctTrnInqRs_Type depAcctTrnInqResponse = trnInq.DepAcctTrnInq(depAcctTrnInqRequest);
        } catch (Exception e) {
            StringWriter sw = new StringWriter();
            PrintWriter pw = new PrintWriter(sw);
            e.printStackTrace(pw);
            Assert.fail("Should pass with MaxRec 2! \n" + sw);
            sw.close();
            pw.close();
        }

        depAcctTrnInqRequest.getTrnCountLimit().setCount(10);
        try {
            DepAcctTrnInqRs_Type depAcctTrnInqResponse = trnInq.DepAcctTrnInq(depAcctTrnInqRequest);
        } catch (Exception e) {
            StringWriter sw = new StringWriter();
            PrintWriter pw = new PrintWriter(sw);
            e.printStackTrace(pw);
            Assert.fail("Should pass with MaxRec 10! \n" + sw);
View Full Code Here

Examples of org.ifxforum.xsd._1.DepAcctTrnInqRs_Type

*/
public class TrnInqService implements TrninqInterface {

    public DepAcctTrnInqRs_Type DepAcctTrnInq(DepAcctTrnInqRq_Type req) throws RemoteException {

        DepAcctTrnInqRs_Type response = _1Factory.INSTANCE.createDepAcctTrnInqRs_Type();

        response.setStatus(_1Factory.INSTANCE.createStatus_Type());
        response.getStatus().setStatusCode(1);
        response.getStatus().setStatusDesc("the description associated with the code 1");
        AdditionalStatus_Type addStatus = _1Factory.INSTANCE.createAdditionalStatus_Type();
        addStatus.setServerStatusCode("STATUS_OK");
        addStatus.setSeverity("SEVERITY_WARNING");
        response.getStatus().getAdditionalStatus().add(addStatus);

        response.setDepAcctId(_1Factory.INSTANCE.createDepAcctId_Type());
        response.getDepAcctId().setBankInfo(_1Factory.INSTANCE.createBankInfo_Type());
        response.getDepAcctId().getBankInfo().setBranchId("Concord_1");
        response.getDepAcctId().getBankInfo().setBankId("Dufferin hill");
        response.getDepAcctId().getBankInfo().setBankIdType("Concord branch");
        response.getDepAcctId().getBankInfo().setBranchName("A Happy branch");
        response.getDepAcctId().getBankInfo().setCity("Toronto");

        response.getDepAcctId().getBankInfo().setCountry("Canada");
        response.getDepAcctId().getBankInfo().setName("Info for A Happy branch");
        response.getDepAcctId().getBankInfo().setPostalCode("L1LL1L");
        response.getDepAcctId().getBankInfo().setStateProv("ON");

        List records = response.getDepAcctTrnRec();
        // Record1
        DepAcctTrnRec_Type trnRec1 = null;
        BankAcctTrnRec_Type baTrnRec1 = null;
        long maxRec = req.getTrnCountLimit().getCount();
        for (int i = 0; i < maxRec; i++) {
View Full Code Here

Examples of org.ifxforum.xsd._1.DepAcctTrnInqRs_Type

        TrnCountLimit_Type trnCountLimit = _1Factory.INSTANCE.createTrnCountLimit_Type();
        depAcctTrnInqRequest.setTrnCountLimit(trnCountLimit);
        depAcctTrnInqRequest.getTrnCountLimit().setCount(2);

        try {
            DepAcctTrnInqRs_Type depAcctTrnInqResponse = trnInq.DepAcctTrnInq(depAcctTrnInqRequest);
        } catch (Exception e) {
            StringWriter sw = new StringWriter();
            PrintWriter pw = new PrintWriter(sw);
            e.printStackTrace(pw);
            Assert.fail("Should pass with MaxRec 2! \n" + sw);
            sw.close();
            pw.close();
        }

        depAcctTrnInqRequest.getTrnCountLimit().setCount(10);
        try {
            DepAcctTrnInqRs_Type depAcctTrnInqResponse = trnInq.DepAcctTrnInq(depAcctTrnInqRequest);
        } catch (Exception e) {
            StringWriter sw = new StringWriter();
            PrintWriter pw = new PrintWriter(sw);
            e.printStackTrace(pw);
            Assert.fail("Should pass with MaxRec 10! \n" + sw);
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.