...
Code Block |
---|
DWHServerService dss = new DWHServerService();
DWHServer ds = dss.getDWHServerPortCustom();
StringArray sa130 = new StringArray();
sa130.getItem().add("IR");
sa130.getItem().add("9052");
StringArray sa131 = new StringArray();
sa131.getItem().add("IR");
sa131.getItem().add("9053");
StringArray sa132 = new StringArray();
sa132.getItem().add("IR");
sa132.getItem().add("1111");
StringArray sa133 = new StringArray();
sa133.getItem().add("XX");
sa133.getItem().add("9054");
List<OrganizationDetails> resultList13 = ds.getValidKFSOrganizations(Arrays.asList(sa130, sa131,sa132,sa133));
if (resultList13 != null) {
for (Iterator i = resultList13.iterator(); i.hasNext();) {
OrganizationDetails element = (OrganizationDetails)i.next();
System.out.println("\t" + element.getKfsChartCode() + "/" + element.getKfsOrgCode() + " : " + element.getKfsOrgName());
}
} else {
System.out.println("something bad happened...please check your query");
} |
...
Code Block |
---|
DWHServerService dss = new DWHServerService();
DWHServer ds = dss.getDWHServerPortCustom();
List<OrganizationDetails> resultList14 = ds.getAllKFSOrganizations();
if (resultList14 != null) {
//for (Iterator i = resultList14.iterator(); i.hasNext();) {
// OrganizationDetails element = (OrganizationDetails)i.next();
//}
System.out.println("total size: " + resultList14.size());
System.out.println("the 1st item ChartCode / OrgCode: OrgName" + ((OrganizationDetails)resultList14.get(0)).getKfsChartCode() + " / " + ((OrganizationDetails)resultList14.get(0)).getKfsOrgCode() + " : " + ((OrganizationDetails)resultList14.get(0)).getKfsOrgName());
} else {
System.out.println("something bad happened...please check your query");
} |
...
Java Client Example
Code Block |
---|
DWHServerService dss = new DWHServerService(); DWHServer ds = dss.getDWHServerPortCustom(); System.out.println("\n=======================================translateFSOrganizations()================================"); List<FS2KFSOrganizationDetails> resultList18 = myBean.translateFSOrganizations(new String[][]{{"9","9030"}, {"9","9040"}, {"0","0000"}}); if (resultList18 != null) { for (Iterator i = resultList18.iterator(); i.hasNext();) { FS2KFSOrganizationDetails element = (FS2KFSOrganizationDetails)i.next(); System.out.println("SERVER UNIT TEST-Result List18: " + element.toString()); } } else { nWSClient-translateFSOrganizations()"); StringArray sa180 = new StringArray(); sa180.getItem().add("9"); sa180.getItem().add("9030"); StringArray sa181 = new StringArray(); sa181.getItem().add("9"); sa181.getItem().add("9040"); StringArray sa182 = new StringArray(); sa182.getItem().add("0"); sa182.getItem().add("0000"); List<Fs2KFSOrganizationDetails> resultList18 = ds.translateFSOrganizations(Arrays.asList(sa180,sa181,sa182)); if (resultList18 != null) { for (Iterator i = resultList18.iterator(); i.hasNext();) { Fs2KFSOrganizationDetails element = (Fs2KFSOrganizationDetails)i.next(); System.out.println("something\t" bad+ happened...please check your query"); } |
...
element.getFsLocationCode() + "/" + element.getFsHierarchyCode() + "/" + element.getFsHierarchyType() + " : " + element.getKfsChartCode() + "/" + element.getKfsOrgCode());
}
} else {
System.out.println("something bad happened...please check your query");
} |
...
translateFSDivisions(List of (fsLocationCode, fsDivsionCode))
...
Java Client Example
Code Block |
---|
System.out.println("\n=======================================translateFSDivision()================================");
List<FS2KFSOrganizationDetails> resultList19 = myBean.translateFSDivisions(new String[][]{{"9","1003"}, {"9","1005"}, {"0","0000"}});
if (resultList19 != null) {
for (Iterator i = resultList19.iterator(); i.hasNext();) {
FS2KFSOrganizationDetails element = (FS2KFSOrganizationDetails)i.next();
System.out.println("SERVER UNIT TEST-Result List19: " + element.toString());
}
} else {
System.out.println("something bad happened...please check your query");
} |
translateFSSubDivisions(List of (fsLocationCode, fsSubDivisionCode))
...
DWHServerService dss = new DWHServerService();
DWHServer ds = dss.getDWHServerPortCustom();
System.out.println("\nWSClient-translateFSDivisions()");
StringArray sa190 = new StringArray();
sa190.getItem().add("9");
sa190.getItem().add("1003");
StringArray sa191 = new StringArray();
sa191.getItem().add("9");
sa191.getItem().add("1005");
StringArray sa192 = new StringArray();
sa192.getItem().add("0");
sa192.getItem().add("0000");
List<Fs2KFSOrganizationDetails> resultList19 = ds.translateFSDivisions(Arrays.asList(sa190,sa191,sa192));
if (resultList19 != null) {
for (Iterator i = resultList19.iterator(); i.hasNext();) {
Fs2KFSOrganizationDetails element = (Fs2KFSOrganizationDetails)i.next();
System.out.println("\t" + element.getFsLocationCode() + "/" + element.getFsHierarchyCode() + "/" + element.getFsHierarchyType() + " : " + element.getKfsChartCode() + "/" + element.getKfsOrgCode());
}
} else {
System.out.println("something bad happened...please check your query");
} |
...
translateFSSubDivisions(List of (fsLocationCode, fsSubDivisionCode))
This service is used to validate KFS organization. Returns an XML result set with a value of true or false for each organization.
...
Java Client Example
Code Block |
---|
System.out.println("\n=======================================translateFSSubDivision()================================");
List<FS2KFSOrganizationDetails> resultList20 = myBean.translateFSSubDivisions(new String[][]{{"9","1003"}, {"9","1005"}, {"0","0000"}});
if (resultList20 != null) {
for (Iterator i = resultList20.iterator(); i.hasNext();) {
FS2KFSOrganizationDetails element = (FS2KFSOrganizationDetails)i.next();
System.out.println("SERVER UNIT TEST-Result List20: " + element.toString());
}
} else {
System.out.println("something bad happened...please check your query");
} |
translateFSDepartments(List of (fsLocationCode, fsDepartmentCode))
This service is used to validate KFS organization. Returns an XML result set with a value of true or false for each organization.
Input Specifications
Index | Parameter | Description | Required? | Data Type (max length) | Example |
---|---|---|---|---|---|
0 | fsLocationCode | FS Location Code | Yes | String(1) | 9 |
1 | fsDepartmentCode | FS DepartmentCode | No | String(4) | 0302 |
DB Query
Code Block |
---|
SELECT
FIN_COA_CD,
ORG_CD,
UC_LOC_CD,
UC_HIERARCHY_CD,
UC_HIERARCHY_TYPE_CD
FROM UCI_CA_ORG_XW_T
WHERE UC_HIERARCHY_TYPE_CD='D' AND
(
(UC_LOC_CD='9' AND UC_HIERARCHY_CD='0302') OR
(UC_LOC_CD='9' AND UC_HIERARCHY_CD='0003') OR
(UC_LOC_CD='0' AND UC_HIERARCHY_CD='0000')
); |
Result Schema: A list of following elements (FS2KFSOrganizationDetails.java)
Parameter | Description | Data Type | Example |
---|---|---|---|
kfsChartCode | KFS Chart Code | String(2) | IR |
kfsOrgCode | KFS Organization Code | String(4) | 0302 |
fsHierarchyType | FS Hierarchy Type | String | D |
fsLocationCode | FS Location Code | String | 9 |
fsHierarchyCode | FS Hierarchy Code | String | 0302 |
WS Example
Request
Code Block |
---|
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:adc="http://www.adcom.uci.edu"> <soapenv:Header/> <soapenv:Body> <adc:translateFSDepartments> <fsOrganizationList> <item>9</DWHServerService dss = new DWHServerService(); DWHServer ds = dss.getDWHServerPortCustom(); System.out.println("\nWSClient-translateFSSubDivisions()"); StringArray sa200 = new StringArray(); sa200.getItem().add("9"); sa200.getItem().add("1003"); StringArray sa201 = new StringArray(); sa201.getItem().add("9"); sa201.getItem().add("1005"); StringArray sa202 = new StringArray(); sa202.getItem().add("0"); sa202.getItem().add("0000"); List<Fs2KFSOrganizationDetails> resultList20 = ds.translateFSSubDivisions(Arrays.asList(sa200,sa201,sa202)); if (resultList20 != null) { for (Iterator i = resultList20.iterator(); i.hasNext();) { Fs2KFSOrganizationDetails element = (Fs2KFSOrganizationDetails)i.next(); System.out.println("\t" + element.getFsLocationCode() + "/" + element.getFsHierarchyCode() + "/" + element.getFsHierarchyType() + " : " + element.getKfsChartCode() + "/" + element.getKfsOrgCode()); } } else { System.out.println("something bad happened...please check your query"); } |
...
translateFSDepartments(List of (fsLocationCode, fsDepartmentCode))
This service is used to validate KFS organization. Returns an XML result set with a value of true or false for each organization.
Input Specifications
Index | Parameter | Description | Required? | Data Type (max length) | Example |
---|---|---|---|---|---|
0 | fsLocationCode | FS Location Code | Yes | String(1) | 9 |
1 | fsDepartmentCode | FS DepartmentCode | No | String(4) | 0302 |
DB Query
Code Block |
---|
SELECT
FIN_COA_CD,
ORG_CD,
UC_LOC_CD,
UC_HIERARCHY_CD,
UC_HIERARCHY_TYPE_CD
FROM UCI_CA_ORG_XW_T
WHERE UC_HIERARCHY_TYPE_CD='D' AND
(
(UC_LOC_CD='9' AND UC_HIERARCHY_CD='0302') OR
(UC_LOC_CD='9' AND UC_HIERARCHY_CD='0003') OR
(UC_LOC_CD='0' AND UC_HIERARCHY_CD='0000')
); |
Result Schema: A list of following elements (FS2KFSOrganizationDetails.java)
Parameter | Description | Data Type | Example |
---|---|---|---|
kfsChartCode | KFS Chart Code | String(2) | IR |
kfsOrgCode | KFS Organization Code | String(4) | 0302 |
fsHierarchyType | FS Hierarchy Type | String | D |
fsLocationCode | FS Location Code | String | 9 |
fsHierarchyCode | FS Hierarchy Code | String | 0302 |
WS Example
Request
Code Block |
---|
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:adc="http://www.adcom.uci.edu">
<soapenv:Header/>
<soapenv:Body>
<adc:translateFSDepartments>
<fsOrganizationList>
<item>9</item>
<item>0302</item>
</fsOrganizationList>
<fsOrganizationList>
<item>9</item>
<item>0003</item>
</fsOrganizationList>
<fsOrganizationList>
<item>0</item>
<item>0000</item>
</fsOrganizationList>
</adc:translateFSDepartments>
</soapenv:Body>
</soapenv:Envelope> |
...
Code Block |
---|
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns2:translateFSDepartmentsResponse xmlns:ns2="http://www.adcom.uci.edu">
<return>
<fsHierarchyCode>0003</fsHierarchyCode>
<fsHierarchyType>D</fsHierarchyType>
<fsLocationCode>9</fsLocationCode>
<kfsChartCode>IR</kfsChartCode>
<kfsOrgCode>0003</kfsOrgCode>
</return>
<return>
<fsHierarchyCode>0302</fsHierarchyCode>
<fsHierarchyType>D</fsHierarchyType>
<fsLocationCode>9</fsLocationCode>
<kfsChartCode>IR</kfsChartCode>
<kfsOrgCode>0302</kfsOrgCode>
</return>
</ns2:translateFSDepartmentsResponse>
</soap:Body>
</soap:Envelope> |
Java Client Example
Code Block |
---|
System.out.println("\n=======================================translateFSDepatment()================================"); List<FS2KFSOrganizationDetails> resultList21 = myBean.translateFSDepartments(new String[][]{{"9","0003"}, {"9","0302"}, {"0","0000"}}soap:Body> </soap:Envelope> |
Java Client Example
Code Block |
---|
DWHServerService dss = new DWHServerService(); DWHServer ds = dss.getDWHServerPortCustom(); System.out.println("\nWSClient-translateFSDepartments()"); StringArray sa210 = new StringArray(); sa210.getItem().add("9"); sa210.getItem().add("0003"); StringArray sa211 = new StringArray(); sa211.getItem().add("9"); sa211.getItem().add("0302"); StringArray sa212 = new StringArray(); sa212.getItem().add("0"); sa212.getItem().add("0000"); List<Fs2KFSOrganizationDetails> resultList21 = ds.translateFSDepartments(Arrays.asList(sa210,sa211,sa212)); if (resultList21 != null) { for (Iterator i = resultList21.iterator(); i.hasNext();) { FS2KFSOrganizationDetailsFs2KFSOrganizationDetails element = (FS2KFSOrganizationDetailsFs2KFSOrganizationDetails)i.next(); System.out.println("SERVER UNIT TEST-Result List21: \t" + element.getFsLocationCode() + "/" + element.getFsHierarchyCode() + "/" + element.getFsHierarchyType() + " : " + element.getKfsChartCode() + "/" + element.toStringgetKfsOrgCode()); } } else { System.out.println("something bad happened...please check your query"); } |
...