ibmi-brunch-learn

Announcement

Collapse
No announcement yet.

wdsc coding assistance please!!!!!!

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • wdsc coding assistance please!!!!!!

    Hi all...I need some help please!!!

    I'm coding in wdsc...have my dynamic web project...have classes and methods that I'm working with. We are using program call beans to call to our AS400. We pass in our input parms and return the appropriate value(s) from our COBOL code on the AS400. All of this works great when the data passed back from the AS400 is an array. The problem I'm now experiencing is in trying to get only 1 record returned. I don't receive any coding or runtime errors and it appears that the program call bean is working as we can see when it hit the program on the AS400. I'm trying to write a println to the wdsc console so I can see what the value returned is except I don't show any result. I've tried every way I can think of in order to code the method but to no avail. I'm now assuming I'm doing something wrong so any assistance anyone can give would be appreciated. The code is in java and looks like this:

    public static Credentials[] verifyCredentials(String VSnumber,
    String emailaddress, String password) {
    WEBCREDEN cr = new WEBCREDEN();
    cr.getREQUEST_LIST().setREQ_VSNO(VSnumber);
    cr.getREQUEST_LIST().setREQ_EML(emailaddress);
    cr.getREQUEST_LIST().setREQ_PWD(password);
    cr.invoke();


    Credentials o = new Credentials();

    o.setVSnumber(cr.getRESPONSE_LIST().getRSP_VSNO()) ;
    o.setEmail(cr.getRESPONSE_LIST().getRSP_EML());
    o.setSessionID(cr.getRESPONSE_LIST().getRSP_SESSIO N());
    o.setStatus(cr.getRESPONSE_LIST().getRSP_STATUS()) ;
    o.setLastname(cr.getRESPONSE_LIST().getRSP_LSTNM() );
    o.setFirstname(cr.getRESPONSE_LIST().getRSP_FRTNM( ));
    o.setTitle(cr.getRESPONSE_LIST().getRSP_TITLE());
    o.setCountry(cr.getRESPONSE_LIST().getRSP_CNTRY()) ;
    o.setPostalcode(cr.getRESPONSE_LIST().getRSP_POSTA L());
    o.setPhonenumber(cr.getRESPONSE_LIST().getRSP_PHON E());
    o.setType(cr.getRESPONSE_LIST().getRSP_TYPE());


    System.out.println("Returned: " + o.getEmail());



    return null;
    }

    need help ASAP (as always!) ..

    thanks

    caren
Working...
X