Versions Compared

Key

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

Table of Contents

isValidKFSObjects(List of (kfsFiscalYear, kfsChartCode, 

...

kfsObjCode))

This service is used to validate KFS object codes. Returns an XML result set with a value of true or false (example isValidKFSCharts result) for each chart

...

Code Block
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <ns2:isValidKFSObjectsResponse xmlns:ns2="http://www.adcom.uci.edu">
         <return>
            <kfsChartCode>IR</kfsChartCode>
            <kfsFiscalYear>2012</kfsFiscalYear>
            <kfsObjectCode>CASH<<kfsObjCode>CASH</kfsObjectCode>kfsObjCode>
            <valid>true</valid>
         </return>
         <return>
            <kfsChartCode>MC</kfsChartCode>
            <kfsFiscalYear>2012</kfsFiscalYear>
            <kfsObjectCode>1100<<kfsObjCode>1100</kfsObjectCode>kfsObjCode>
            <valid>true</valid>
         </return>
         <return>
            <kfsChartCode>IR</kfsChartCode>
            <kfsFiscalYear>2013</kfsFiscalYear>
            <kfsObjectCode>CASH<<kfsObjCode>CASH</kfsObjectCode>kfsObjCode>
            <valid>false</valid>
         </return>
      </ns2:isValidKFSObjectsResponse>
   </soap:Body>
</soap:Envelope> 

...

Code Block
DWHServerService dss = new DWHServerService();
DWHServer ds = dss.getDWHServerPortCustom();
 
StringArray sa90 = new StringArray();
sa90.getItem().add("2012");
sa90.getItem().add("IR");
sa90.getItem().add("CASH");
		
StringArray sa91 = new StringArray();
sa91.getItem().add("2012");
sa91.getItem().add("MC");
sa91.getItem().add("1100");


StringArray sa92 = new StringArray();
sa92.getItem().add("2013");
sa92.getItem().add("IR");
sa92.getItem().add("CASH");


List<ObjectValidation> resultList9 = ds.isValidKFSObjects(Arrays.asList(sa90, sa91, sa92));
if (resultList9 != null) {
	for (Iterator i = resultList9.iterator(); i.hasNext();) {
		ObjectValidation element = (ObjectValidation)i.next();
		System.out.println("isValidObj-FiscalYr / ChartCode / ObjCode : isValid" + element.getKfsFiscalYear() + "/" + element.getKfsChartCode() + "/" + element.getKfsObjCode() + " : " + element.isValid());
	}
} else {
	System.out.println("something bad happened...please check your query");
} 

 

...

getValidKFSObjects(List of (kfsFiscalYear, kfsChartCode, 

...

kfsObjCode))

This service is used retrieve valid KFS object codes and related attributes. Returns an XML result set with a list of charts (example getAllValidKFSObjects result). 

...

IndexParameterDescriptionRequired?Data Type (max length)
0kfsFiscalYearThe KFS Fiscal Year (e.g. 2013)YesString (4)
1kfsChartCodeThe KFS chart of accounts codeYesString (2)
2kfsObjectCodekfsObjCodeThe KFS object codeYesString (4)

...

ParameterDescriptionData TypeExample
fiscalYearFiscal YearString (4)2012
kfsChartCodeKFS Chart CodeString (2)IR
fsLocationCodeThe FS location codeString (2)9
fsSubCodeThe FS Sub CodeString (2)03
fsObjectCodeThe FS Object CodeString (4)8096
kfsObjectCodekfsObjCodeKFS Object CodeString (4)8160

...

Code Block
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
   <soap:Body>
      <ns2:translateFSObjectsResponse xmlns:ns2="http://www.adcom.uci.edu">
         <return>
            <fiscalYear>2012</fiscalYear>
            <fsLocationCode>9</fsLocationCode>
            <fsObjectCode>8096</fsObjectCode>
            <fsSubCode>03</fsSubCode>
            <kfsChartCode>IR</kfsChartCode>
            <kfsObjectCode>8160<<kfsObjCode>8160</kfsObjectCode>kfsObjCode>
         </return>
         <return>
            <fiscalYear>2012</fiscalYear>
            <fsLocationCode>R</fsLocationCode>
            <fsObjectCode>8096</fsObjectCode>
            <fsSubCode>03</fsSubCode>
            <kfsChartCode>IR</kfsChartCode>
            <kfsObjectCode>8160<<kfsObjCode>8160</kfsObjectCode>kfsObjCode>
         </return>
      </ns2:translateFSObjectsResponse>
   </soap:Body>
</soap:Envelope>

...

Code Block
DWHServerService dss = new DWHServerService();
DWHServer ds = dss.getDWHServerPortCustom();
 
StringArray sa330 = new StringArray();
sa330.getItem().add("2012");
sa330.getItem().add("IR");
sa330.getItem().add("9");
sa330.getItem().add("8096");
sa330.getItem().add("03");


StringArray sa331 = new StringArray();
sa331.getItem().add("2012");
sa331.getItem().add("IR");
sa331.getItem().add("R");
sa331.getItem().add("8096");
sa331.getItem().add("03");


StringArray sa332 = new StringArray();
sa332.getItem().add("0000");
sa332.getItem().add("00");
sa332.getItem().add("0");
sa332.getItem().add("0000");
sa332.getItem().add("00");
List<Fs2KFSObjectDetails> resultList33 = ds.translateFSObjects(Arrays.asList(sa330,sa331,sa332));
if (resultList33 != null) {
	for (Iterator i = resultList33.iterator(); i.hasNext();) {
		Fs2KFSObjectDetails element = (Fs2KFSObjectDetails)i.next();
		System.out.println("\t" + element.getFiscalYear() + "/" + element.getKfsChartCode() + "/" + element.getFsLocationCode() + "/" + element.getFsObjectCode() + "/" + element.getFsSubCode() + " : " + element.getKfsObjectCodegetkfsObjCode());
	}
} else {
	System.out.println("something bad happened...please check your query");
}