Versions Compared

Key

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

...

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");
}

 

...

translateFSOrganizations(List of (fsLocationCode,

...

fsHierarchyCode))

This service is used to validate KFS organization. Returns an XML result set with a value of true or false for each organization.

...

IndexParameterDescriptionRequired?Data Type (max length)Example
0fsLocationCodeFS Location CodeYesString(1)9
1fsOrganizationCodefsHierarchyCodeFS Organization CodeNoString(4)9030

...

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

 
System.out.println("\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("\t" + 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,

...

 fsHierarchyCode))

This service is used to validate KFS organization. Returns an XML result set with a value of true or false for each organization.

...

IndexParameterDescriptionRequired?Data Type (max length)Example
0fsLocationCodeFS Location CodeYesString(1)9
1fsDivsionCodefsHierarchyCodeFS Division CodeYesString(4)1003

...

Code Block
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,

...

fsHierarchyCode))

This service is used to validate KFS organization. Returns an XML result set with a value of true or false for each organization.

...

IndexParameterDescriptionRequired?Data Type (max length)Example
0fsLocationCodeFS Location CodeYesString(1)9
1fsSubDivisionCodefsHierarchyCodeFS SubDivisionCodeNoString(4)1003

...

Code Block
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,

...

 fsHierarchyCode))

This service is used to validate KFS organization. Returns an XML result set with a value of true or false for each organization.

...

IndexParameterDescriptionRequired?Data Type (max length)Example
0fsLocationCodeFS Location CodeYesString(1)9
1fsDepartmentCodefsHierarchyCodeFS DepartmentCodeNoString(4)0302

...