Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 17 Next »

Usage

Dev WSDL location: https://thea.adcom.uci.edu/WebServices/DWHServer?wsdl

Dev Endpoint: https://thea.adcom.uci.edu/WebServices/DWHServer

Detail table: PK (vndr_hdr_gnrtd_id + vndr_dtl_asnd_id)

Address table: PK (vndr_addr_gnrtd_id)

Alias (old vendor) table: PK (vndr_alias_nm + vndr_hdr_gnrtd_id + vndr_dtl_asnd_id)

1 (vndr_hdr_gnrtd_id + vndr_dtl_asnd_id) has N (vndr_addr_gnrtd_id)


isValidKFSVendors(List of (kfsVendorHeaderId, kfsVendorDetailId) )

Input Specifications

IndexParameterDescriptionRequired?Data Type (max length)Example
0kfsVendorHeaderIdVendor Header Generated IDYString (10)1126
1kfsVendorDetailIdVendor Detail Assigned IDYString (10)1

DB Query

SELECT CONVERT(varchar(10), a.vndr_hdr_gnrtd_id) AS vndr_hdr_gnrtd_id,
       CONVERT(varchar(10), a.vndr_dtl_asnd_id) AS vndr_dtl_asnd_id, 
       'true' AS VALID
FROM PUR_VNDR_DTL_T a
WHERE
(
(a.vndr_hdr_gnrtd_id = '1126' AND a.vndr_dtl_asnd_id = '1') OR 
(a.vndr_hdr_gnrtd_id = '1127' AND a.vndr_dtl_asnd_id = '1') OR
(a.vndr_hdr_gnrtd_id = '0000' AND a.vndr_dtl_asnd_id = '0')
);

Result Schema: A list of following elements (VendorValidation.java)

DB ParameterJava ParameterDescriptionData TypeExample
vndr_hdr_gnrtd_id
kfsVendorHeaderIdVendor Header Generated IDString1126
vndr_dtl_asnd_id
kfsVendorDetailIdVendor Detail Assigned IDString1
VALIDisValidis Vendor validbooleantrue

WS Example

Request
 
Response
 

Java Client Example

 

 


getValidKFSVendors(List of (kfsVendorHeaderId, kfsVendorDetailId) )

Input Specifications

IndexParameterDescriptionRequired?Data Type (max length)Example
0kfsVendorHeaderIdVendor Header Generated IDYString(10)1126
1kfsVendorDetailIdVendor Detail Assigned IDYString(10)1

DB Query

SELECT CONVERT(varchar(10), a.vndr_hdr_gnrtd_id) AS vndr_hdr_gnrtd_id,
       CONVERT(varchar(10), a.vndr_dtl_asnd_id) AS vndr_dtl_asnd_id, 
       a.vndr_nm,
       a.vndr_duns_nbr
FROM PUR_VNDR_DTL_T a 
WHERE 
(
(a.vndr_hdr_gnrtd_id = '1126' AND a.vndr_dtl_asnd_id = '1') OR 
(a.vndr_hdr_gnrtd_id = '1127' AND a.vndr_dtl_asnd_id = '1') OR
(a.vndr_hdr_gnrtd_id = '0000' AND a.vndr_dtl_asnd_id = '0')
);

Result Schema: A list of following elements (VendorDetails.java)

DB ParameterJava ParameterDescriptionData TypeExample
vndr_hdr_gnrtd_id 
kfsVendorHeaderIdVendor Header Generated IDString1126
vndr_dtl_asnd_id
kfsVendorDetailIdVendor Detail Assigned IDString1
vndr_nm
kfsVendorNameVendor NameStringCORNELL UNIVERSITY-ILR
vndr_duns_nbr
kfsVendorDUNSNumberVendor DUNS NumberString0

WS Example

Request
 
Response
 

Java Client Example

 

 


getAllKFSVendors( )

DB Query

SELECT CONVERT(varchar(10), a.vndr_hdr_gnrtd_id) AS vndr_hdr_gnrtd_id,
       CONVERT(varchar(10), a.vndr_dtl_asnd_id) AS vndr_dtl_asnd_id, 
       a.vndr_nm,
       a.vndr_duns_nbr
FROM PUR_VNDR_DTL_T a;

Result Schema: Same as getValidKFSVendors()

WS Example

Request
 
Response
 

Java Client Example

 

 


isValidKFSVendorAddresses(List of (kfsVendorAddressId) )

Input Specifications

IndexParameterDescriptionRequired?Data Type (max length)Example
0kfsVendorAddrIdVendor Address Generated IDYString(10)21626

DB Query

SELECT 
CONVERT(varchar(10), a.vndr_addr_gnrtd_id) AS vndr_addr_gnrtd_id,
'true' AS VALID
FROM PUR_VNDR_ADDR_T a 
WHERE a.VNDR_ADDR_GNRTD_ID IN ('21626', '21627', '0000');

Result Schema: A list of following elements (VendorAddressValidation.java)

DB ParameterJava ParameterDescriptionData TypeExample
vndr_addr_gnrtd_id
kfsVendorAddrIdVendor Address Generated IDString21626
VALIDisValidis Vendor Address ID validbooleantrue

WS Example

Request
 
Response
 

Java Client Example

 

 


getValidKFSVendorAddresses(List of (kfsVendorHeaderId, kfsVendorDetailId, kfsVendorAddrType))

Relationship between Vendor and Address is 1:Many, but only get the default one

Input Specifications

IndexParameterDescriptionRequired?Data Type (max length)Example
0kfsVendorHeaderIdVendor Header Generated IDYString(10)1007
1kfsVendorDetailIdVendor Detail Assigned IDYString(10)0
2kfsVendorAddrTypeVendor Address TypeYStringPO

DB Query

SELECT 
CONVERT(varchar(10), VNDR_HDR_GNRTD_ID) AS VNDR_HDR_GNRTD_ID,
CONVERT(varchar(10), VNDR_DTL_ASND_ID) AS VNDR_DTL_ASND_ID,
VNDR_ADDR_TYP_CD, 
CONVERT(varchar(10), VNDR_ADDR_GNRTD_ID) AS VNDR_ADDR_GNRTD_ID,
VNDR_LN1_ADDR, 
VNDR_LN2_ADDR, 
VNDR_CTY_NM,
VNDR_ST_CD,
VNDR_ZIP_CD,
VNDR_CNTRY_CD
FROM pur_vndr_addr_t 
WHERE VNDR_DFLT_ADDR_IND <> 'N' AND
(
(VNDR_HDR_GNRTD_ID = '1007' AND VNDR_DTL_ASND_ID = '0' AND VNDR_ADDR_TYP_CD='PO') OR 
(VNDR_HDR_GNRTD_ID = '1007' AND VNDR_DTL_ASND_ID = '0' AND VNDR_ADDR_TYP_CD='RM') OR 
(VNDR_HDR_GNRTD_ID = '13788' AND VNDR_DTL_ASND_ID = '3' AND VNDR_ADDR_TYP_CD='PO') OR 
(VNDR_HDR_GNRTD_ID = '13788' AND VNDR_DTL_ASND_ID = '0' AND VNDR_ADDR_TYP_CD='RM') OR 
(VNDR_HDR_GNRTD_ID = '00000' AND VNDR_DTL_ASND_ID = '0' AND VNDR_ADDR_TYP_CD='XX')
);

Result Schema: A list of following elements (VendorAddressDetails.java)

DB ParameterJava ParameterDescriptionData TypeExample
VNDR_HDR_GNRTD_ID
kfsVendorHeaderIdVendor Header Generated IdString 
VNDR_DTL_ASND_ID
kfsVendorDetailIdVendor Detailed Assigned IdString 
VNDR_ADDR_TYP_CD
kfsVendorAddrTypeVendor Address TypeString 
vndr_addr_gnrtd_id 
kfsVendorAddrIdVendor Address IdString 
vndr_ln1_addr
kfsVendorAddr1Vendor Address Line 1String 
vndr_ln2_addr
kfsVendorAddr2Vendor Address Line 2String 
vndr_cty_nm
kfsVendorCityVendor CityString 
vndr_st_cd
kfsVendorStateVendor StateString 
vndr_zip_cd
kfsVendorZipVendor ZipString 
vndr_cntry_cd
kfsVendorCountryVendor CountryString 

WS Example

Request
 
Response
 

Java Client Example

 

 


ON HOLD...need to find out the link between old VendorID and new VendorID, right now the vendorAliasNm to (headerId + detailId) are many to many

translatePALVendors(PALVendorID)

Old Vendor Id is Alias Name (VNDR_ALIAS_NM) in Alias table (PUR_VNDR_ALIAS_T)

Input Specifications

IndexParameterDescriptionRequired?Data Type (max length)Example
0PALVendorIDOld PAL Vendor IDYString(10)0005923500

DB Query

SELECT
/*a.VNDR_ALIAS_NM,*/
CONVERT(varchar(10), VNDR_HDR_GNRTD_ID) AS VNDR_HDR_GNRTD_ID,
CONVERT(varchar(10), VNDR_DTL_ASND_ID) AS VNDR_DTL_ASND_ID,
FROM PUR_VNDR_ALIAS_T 
WHERE 
DOBJ_MAINT_CD_ACTV_IND <> 'N' AND 
VNDR_ALIAS_NM = '0421835099';

Result Schema: A list of following elements (VendorDetails.java)

DB ParameterJava ParameterDescriptionData TypeExample
VNDR_HDR_GNRTD_ID
kfsVendorHeaderIdVendor Header Generated IDString20248
VNDR_DTL_ASND_ID
kfsVendorDetailIdVendor Detail Assigned IDString0

WS Example

Request
 
Response
 

Java Client Example

 

 


 

 

 

 

  • No labels