Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
DWHServerService dss = new DWHServerService();
DWHServer ds = dss.getDWHServerPortCustomgetDWHServerPort();

System.out.println("\nWSClient-isValidKFSSubAccounts()");
StringArray sa250 = new StringArray();
sa250.getItem().add("IR");
sa250.getItem().add("1001783");
sa250.getItem().add("EXP01");
StringArray sa251 = new StringArray();
sa251.getItem().add("IR");
sa251.getItem().add("1001783");
sa251.getItem().add("EXP02");
StringArray sa252 = new StringArray();
sa252.getItem().add("IR");
sa252.getItem().add("1001783");
sa252.getItem().add("XXXX");
List<SubAccountValidation> resultList25 = ds.isValidKFSSubAccounts(Arrays.asList(sa250, sa251, sa252));
if (resultList25 != null) {
	for (Iterator i = resultList25.iterator(); i.hasNext();) {
		SubAccountValidation element = (SubAccountValidation)i.next();
		System.out.println("\t" + element.getKfsChartCode() + "/" + element.getKfsAcctNumber() + "/" + element.getKfsSubAcctNumber() + " : " + element.isValid());
	}
} else {
	System.out.println("something bad happened...please check your query");
}

...

Code Block
DWHServerService dss = new DWHServerService();
DWHServer ds = dss.getDWHServerPortCustomgetDWHServerPort();

System.out.println("\nWSClient-getValidKFSSubAccounts()");
StringArray sa260 = new StringArray();
sa260.getItem().add("IR");
sa260.getItem().add("1001783");
sa260.getItem().add("EXP01");
StringArray sa261 = new StringArray();
sa261.getItem().add("IR");
sa261.getItem().add("1001783");
sa261.getItem().add("EXP02");
StringArray sa262 = new StringArray();
sa262.getItem().add("IR");
sa262.getItem().add("1001783");
sa262.getItem().add("XXXX");
List<SubAccountDetails> resultList26 = ds.getValidKFSSubAccounts(Arrays.asList(sa260, sa261, sa262));
if (resultList26 != null) {
	for (Iterator i = resultList26.iterator(); i.hasNext();) {
		SubAccountDetails element = (SubAccountDetails)i.next();
		System.out.println("\t" + element.getKfsChartCode() + "/" + element.getKfsAcctNumber() + "/" + element.getKfsSubAcctNumber() + " : " + element.getKfsSubAcctName());
	}
} else {
	System.out.println("something bad happened...please check your query");
}

...

Code Block
DWHServerService dss = new DWHServerService();
DWHServer ds = dss.getDWHServerPortCustomgetDWHServerPort();

System.out.println("\nWSClient--getAllKFSSubAccounts()================================");
List<SubAccountDetails> resultList27 = ds.getAllKFSSubAccounts();
if (resultList27 != null) {
	System.out.println("getAllSubAccount-total size: " + resultList27.size());
	System.out.println("getAllSubAccount-1st item ChartCode / AcctNum / SubAcctNum: SubAcctName" + ((SubAccountDetails)resultList27.get(0)).getKfsChartCode() + " / " + ((SubAccountDetails)resultList27.get(0)).getKfsAcctNumber() + " / " + ((SubAccountDetails)resultList27.get(0)).getKfsSubAcctNumber() + ":" + ((SubAccountDetails)resultList27.get(0)).getKfsSubAcctName());
} else {
	System.out.println("something bad happened...please check your query");
}