...
Index | Parameter | Description | Required? | Data Type (max length) | Example |
---|
0 | kfsVendorHeaderId | Vendor Header Generated ID | Y | String (10) | 11261058 |
1 | kfsVendorDetailId | Vendor Detail Assigned ID | Y | String (10) | 10 |
DB Query
Code Block |
---|
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 = '11261058' AND a.vndr_dtl_asnd_id = '10') OR
(a.vndr_hdr_gnrtd_id = '11271059' AND a.vndr_dtl_asnd_id = '10') OR
(a.vndr_hdr_gnrtd_id = '0000' AND a.vndr_dtl_asnd_id = '01')
); |
Result Schema: A list of following elements (VendorValidation.java)
DB Parameter | Java Parameter | Description | Data Type | Example |
---|
vndr_hdr_gnrtd_id | kfsVendorHeaderId | Vendor Header Generated ID | String | 11261058 |
vndr_dtl_asnd_id | kfsVendorDetailId | Vendor Detail Assigned ID | String | 10 |
VALID | isValid | is Vendor valid | boolean | true |
...
Code Block |
---|
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:adc="http://www.adcom.uci.edu">
<soapenv:Header/>
<soapenv:Body>
<adc:isValidKFSVendors>
<kfsVendorList>
<item>1126<<kfsVendorDetailId>0</item>kfsVendorDetailId>
<item>1<<kfsVendorHeaderId>1058</item>kfsVendorHeaderId>
</kfsVendorList>
<kfsVendorList>
<item>1127<<kfsVendorDetailId>0</item>kfsVendorDetailId>
<item>1<<kfsVendorHeaderId>1059</item>kfsVendorHeaderId>
</kfsVendorList>
<kfsVendorList>
<item>0000<<kfsVendorDetailId>1</item>kfsVendorDetailId>
<item>0<<kfsVendorHeaderId>0000</item>kfsVendorHeaderId>
</kfsVendorList>
</adc:isValidKFSVendors>
</soapenv:Body>
</soapenv:Envelope> |
...
Code Block |
---|
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns2:isValidKFSVendorsResponse xmlns:ns2="http://www.adcom.uci.edu">
<return>
<kfsVendorDetailId>0<<kfsVendorDetailId>1</kfsVendorDetailId>
<kfsVendorHeaderId>0000</kfsVendorHeaderId>
<valid>false</valid>
</return>
<return>
<kfsVendorDetailId>1<<kfsVendorDetailId>0</kfsVendorDetailId>
<kfsVendorHeaderId>1126<<kfsVendorHeaderId>1059</kfsVendorHeaderId>
<valid>true</valid>
</return>
<return>
<kfsVendorDetailId>1<<kfsVendorDetailId>0</kfsVendorDetailId>
<kfsVendorHeaderId>1127<<kfsVendorHeaderId>1058</kfsVendorHeaderId>
<valid>true</valid>
</return>
</ns2:isValidKFSVendorsResponse>
</soap:Body>
</soap:Envelope> |
...
Code Block |
---|
DWHServerService dss = new DWHServerService();
DWHServer ds = dss.getDWHServerPortCustom();
System.out.println("\nWSClient-isValidKFSVendors()"ArrayList<VendorParameters> pl30 = new ArrayList<VendorParameters>();
StringArrayVendorParameters sa280vp300 = new StringArrayVendorParameters();
sa280vp300.getItemsetKfsVendorHeaderId().add("11261058");
sa280vp300.getItemsetKfsVendorDetailId().add("10");
StringArrayVendorParameters sa281vp301 = new StringArrayVendorParameters();
sa281vp301.getItemsetKfsVendorHeaderId().add("11271059");
sa281.getItem().addvp301.setKfsVendorDetailId("10");
StringArrayVendorParameters sa282vp302 = new StringArrayVendorParameters();
sa282vp302.getItemsetKfsVendorHeaderId("0000");
vp302.addsetKfsVendorDetailId("00001");
sa282.getItem()pl30.add(vp300);
pl30.add(vp301);
pl30.add("0"vp302);
List<VendorValidation> resultList28resultList30 = ds.isValidKFSVendors(Arrays.asList(sa280, sa281, sa282))pl30);
if (resultList28resultList30 != null) {
for (Iterator i = resultList28resultList30.iterator(); i.hasNext();) {
VendorValidation element = (VendorValidation) i.next();
System.out.println("\t" + element.getKfsVendorHeaderId() + "/" + element.getKfsVendorDetailId() + " : " + element.isValid());
}
} else {
System.out.println("something bad happened...please check your query");
} |
...
Index | Parameter | Description | Required? | Data Type (max length) | Example |
---|
0 | kfsVendorHeaderId | Vendor Header Generated ID | Y | String(10) | 11261058 |
1 | kfsVendorDetailId | Vendor Detail Assigned ID | Y | String(10) | 10 |
DB Query
Code Block |
---|
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 = '11261058' AND a.vndr_dtl_asnd_id = '10') OR
(a.vndr_hdr_gnrtd_id = '11271059' AND a.vndr_dtl_asnd_id = '10') OR
(a.vndr_hdr_gnrtd_id = '0000' AND a.vndr_dtl_asnd_id = '01')
); |
Result Schema: A list of following elements (VendorDetails.java)
...
Code Block |
---|
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:adc="http://www.adcom.uci.edu">
<soapenv:Header/>
<soapenv:Body>
<adc:getValidKFSVendors>
<kfsVendorList>
<item>1126<<kfsVendorDetailId>0</item>kfsVendorDetailId>
<item>1<<kfsVendorHeaderId>1058</item>kfsVendorHeaderId>
</kfsVendorList>
<kfsVendorList>
<item>1127<<kfsVendorDetailId>0</item>kfsVendorDetailId>
<item>1<<kfsVendorHeaderId>1059</item>kfsVendorHeaderId>
</kfsVendorList>
<kfsVendorList>
<item>0000<<kfsVendorDetailId>1</item>kfsVendorDetailId>
<item>0<<kfsVendorHeaderId>0000</item>kfsVendorHeaderId>
</kfsVendorList>
</adc:getValidKFSVendors>
</soapenv:Body>
</soapenv:Envelope> |
...
Code Block |
---|
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns2:getValidKFSVendorsResponse xmlns:ns2="http://www.adcom.uci.edu">
<return>
<kfsVendorDUNSNumber>0<<kfsVendorDetailId>0</kfsVendorDUNSNumber>kfsVendorDetailId>
<kfsVendorDetailId>1<<kfsVendorHeaderId>1058</kfsVendorDetailId>kfsVendorHeaderId>
<kfsVendorHeaderId>1126</kfsVendorHeaderId>
<kfsVendorName>GEORGE G BOGHOSSIAN & ASSOCIATES, INC</kfsVendorName>
<kfsVendorName>CORNELL UNIVERSITY-ILR</kfsVendorName>
</</return>
<return>
<kfsVendorDUNSNumber>0<<kfsVendorDetailId>0</kfsVendorDUNSNumber>kfsVendorDetailId>
<kfsVendorDetailId>1<<kfsVendorHeaderId>1059</kfsVendorDetailId>kfsVendorHeaderId>
<kfsVendorHeaderId>1127</kfsVendorHeaderId><kfsVendorName>NATIONAL CONSUMER VOICE <kfsVendorName>THE CENTER QUICKPRINT<FOR QUALITY</kfsVendorName>
</return>
</ns2:getValidKFSVendorsResponse>
</soap:Body>
</soap:Envelope> |
...
Code Block |
---|
DWHServerService dss = new DWHServerService();
DWHServer ds = dss.getDWHServerPortCustom();
System.out.println("\nWSClient-getValidKFSVendors()");
StringArray sa290ArrayList<VendorParameters> pl30 = new ArrayList<VendorParameters>();
VendorParameters vp300 = new StringArrayVendorParameters();
sa290.getItem().addvp300.setKfsVendorHeaderId("11261058");
sa290vp300.getItemsetKfsVendorDetailId().add("10");
StringArrayVendorParameters sa291vp301 = new StringArrayVendorParameters();
sa291.getItem().addvp301.setKfsVendorHeaderId("11271059");
sa291vp301.getItemsetKfsVendorDetailId().add("10");
StringArrayVendorParameters sa292vp302 = new StringArrayVendorParameters();
sa292vp302.getItemsetKfsVendorHeaderId("0000");
vp302.addsetKfsVendorDetailId("00001");
sa292.getItem()pl30.add(vp300);
pl30.add(vp301);
pl30.add("0"vp302);
List<VendorDetails> resultList29resultList31 = ds.getValidKFSVendors(Arrays.asList(sa290, sa291, sa292));
pl30);
if (resultList29resultList31 != null) {
for (Iterator i = resultList29resultList31.iterator(); i.hasNext();) {
VendorDetails element = (VendorDetails) i.next();
System.out.println("\t" + element.getKfsVendorHeaderId() + "/" + element.getKfsVendorDetailId() + " : " + element.getKfsVendorName() + "/" + element.getKfsVendorDUNSNumber());
}
} else {
System.out.println("something bad happened...please check your query");
} |
...
Index | Parameter | Description | Required? | Data Type (max length) | Example |
---|
0 | kfsVendorAddrId | Vendor Address Generated ID | Y | String(10) | 216264110 |
DB Query
Code Block |
---|
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 ('216264100', '216274111', '0000'); |
Result Schema: A list of following elements (VendorAddressValidation.java)
DB Parameter | Java Parameter | Description | Data Type | Example |
---|
vndr_addr_gnrtd_id | kfsVendorAddrId | Vendor Address Generated ID | String | 216264100 |
VALID | isValid | is Vendor Address ID valid | boolean | true |
...
Code Block |
---|
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:adc="http://www.adcom.uci.edu">
<soapenv:Header/>
<soapenv:Body>
<adc:isValidKFSVendorAddresses>
<kfsVendorAddressList>21626</kfsVendorAddressList><kfsVendorAddressList>
<kfsVendorAddressList>21627<<kfsVendorAddressId>4110</kfsVendorAddressList>kfsVendorAddressId>
<kfsVendorAddressList>0000<</kfsVendorAddressList>
</adc:isValidKFSVendorAddresses> <kfsVendorAddressList>
</soapenv:Body> </soapenv:Envelope> |
Response
Code Block |
---|
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns2:isValidKFSVendorAddressesResponse xmlns:ns2="http://www.adcom.uci.edu"><kfsVendorAddressId>4111</kfsVendorAddressId>
<return></kfsVendorAddressList>
<kfsVendorAddressList>
<kfsVendorAddrId>0000</kfsVendorAddrId> <valid>false</valid><kfsVendorAddressId>0000</kfsVendorAddressId>
</return>kfsVendorAddressList>
</adc:isValidKFSVendorAddresses>
<return> <kfsVendorAddrId>21626</kfsVendorAddrId>
</soapenv:Body>
</soapenv:Envelope> |
Response
Code Block |
---|
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<valid>true</valid> </return><ns2:isValidKFSVendorAddressesResponse xmlns:ns2="http://www.adcom.uci.edu">
<return>
<kfsVendorAddrId>21627<<kfsVendorAddrId>0000</kfsVendorAddrId>
<valid>true<<valid>false</valid>
</return>
</ns2:isValidKFSVendorAddressesResponse> <return>
</soap:Body>
</soap:Envelope> |
Java Client Example
Code Block |
---|
DWHServerService dss = new DWHServerService();
DWHServer ds = dss.getDWHServerPortCustom();
System.out.println("\nWSClient-isValidKFSVendorAddresses()");
List<VendorAddressValidation> resultList31 = ds.isValidKFSVendorAddresses(Arrays.asList(new String[]{"21626", "21627", "0000"}));
if (resultList31 != null) {
for (Iterator i = resultList31.iterator(); i.hasNext();) {
VendorAddressValidation element = (VendorAddressValidation)i.next();
System.out.println("\t" + element.getKfsVendorAddrId() + " : " + element.isValid());
}
} else {
System.out.println("something bad happened...please check your query");
} |
Relationship between Vendor and Address is 1:Many, but only get the default one
Input Specifications
Index | Parameter | Description | Required? | Data Type (max length) | Example |
---|
0 | kfsVendorHeaderId | Vendor Header Generated ID | Y | String(10) | 1007 |
1 | kfsVendorDetailId | Vendor Detail Assigned ID | Y | String(10) | 0 |
2 | kfsVendorAddrType | Vendor Address Type | Y | String | PO |
DB Query
Code Block |
---|
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 Parameter | Java Parameter | Description | Data Type | Example |
---|
VNDR_HDR_GNRTD_ID | kfsVendorHeaderId | Vendor Header Generated Id | String | |
VNDR_DTL_ASND_ID | kfsVendorDetailId | Vendor Detailed Assigned Id | String | |
VNDR_ADDR_TYP_CD | kfsVendorAddrType | Vendor Address Type | String | |
vndr_addr_gnrtd_id | kfsVendorAddrId | Vendor Address Id | String | |
vndr_ln1_addr | kfsVendorAddr1 | Vendor Address Line 1 | String | |
vndr_ln2_addr | kfsVendorAddr2 | Vendor Address Line 2 | String | |
vndr_cty_nm | kfsVendorCity | Vendor City | String | |
vndr_st_cd | kfsVendorState | Vendor State | String | |
vndr_zip_cd | kfsVendorZip | Vendor Zip | String | |
vndr_cntry_cd | kfsVendorCountry | Vendor Country | String | |
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:getValidKFSVendorAddresses>
<kfsVendorAddressList>
<item>1007</item>
<item>0</item>
<item>PO</item>
</kfsVendorAddressList>
<kfsVendorAddressList>
<item>1007</item>
<item>0</item>
<item>RM</item>
</kfsVendorAddressList>
<kfsVendorAddressList>
<item>13788</item>
<item>3</item>
<item>PO</item>
</kfsVendorAddressList>
<kfsVendorAddressList>
<item>13788</item>
<item>0</item>
<item>RM</item>
</kfsVendorAddressList>
<kfsVendorAddressList>
<item>00000</item>
<item>0</item>
<item>XX</item>
</kfsVendorAddressList>
</adc:getValidKFSVendorAddresses>
</soapenv:Body>
</soapenv:Envelope> |
Response
Code Block |
---|
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<ns2:getValidKFSVendorAddressesResponse xmlns:ns2="http://www.adcom.uci.edu">
<return>
<kfsVendorAddr1>338 SO. 4TH STREET</kfsVendorAddr1>
<kfsVendorAddr2>P.O. BOX 446</kfsVendorAddr2>
<kfsVendorAddrId>21633</kfsVendorAddrId>
<kfsVendorAddrType>PO</kfsVendorAddrType>
<kfsVendorCity>GROVER CITY</kfsVendorCity>
<kfsVendorCountry>US</kfsVendorCountry>
<kfsVendorAddrId>4111</kfsVendorAddrId>
<valid>true</valid>
</return>
<return>
<kfsVendorAddrId>4110</kfsVendorAddrId>
<valid>true</valid>
</return>
</ns2:isValidKFSVendorAddressesResponse>
</soap:Body>
</soap:Envelope> |
Java Client Example
Code Block |
---|
DWHServerService dss = new DWHServerService();
DWHServer ds = dss.getDWHServerPortCustom();
ArrayList<VendorParameters> pl33 = new ArrayList<VendorParameters>();
VendorParameters vp330 = new VendorParameters();
vp330.setKfsVendorAddressId("4110");
VendorParameters vp331 = new VendorParameters();
vp331.setKfsVendorAddressId("4111");
VendorParameters vp332 = new VendorParameters();
vp332.setKfsVendorAddressId("0000");
pl33.add(vp330);
pl33.add(vp331);
pl33.add(vp332);
List<VendorAddressValidation> resultList33 = ds.isValidKFSVendorAddresses(pl33);
if (resultList33 != null) {
for (Iterator i = resultList33.iterator(); i.hasNext();) {
VendorAddressValidation element = (VendorAddressValidation) i.next();
System.out.println("\t" + element.getKfsVendorAddrId() + " : " + element.isValid());
}
} else {
System.out.println("something bad happened...please check your query");
} |
...
Relationship between Vendor and Address is 1:Many, but only get the default one
Input Specifications
Index | Parameter | Description | Required? | Data Type (max length) | Example |
---|
0 | kfsVendorHeaderId | Vendor Header Generated ID | Y | String(10) | 1340 |
1 | kfsVendorDetailId | Vendor Detail Assigned ID | Y | String(10) | 0 |
2 | kfsVendorAddrType | Vendor Address Type | Y | String | PO |
DB Query
Code Block |
---|
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 = '1340' AND VNDR_DTL_ASND_ID = '0' AND VNDR_ADDR_TYP_CD='PO') OR
(VNDR_HDR_GNRTD_ID = '2325' AND VNDR_DTL_ASND_ID = '53' AND VNDR_ADDR_TYP_CD='PO') 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 Parameter | Java Parameter | Description | Data Type | Example |
---|
VNDR_HDR_GNRTD_ID | kfsVendorHeaderId | Vendor Header Generated Id | String | |
VNDR_DTL_ASND_ID | kfsVendorDetailId | Vendor Detailed Assigned Id | String | |
VNDR_ADDR_TYP_CD | kfsVendorAddrType | Vendor Address Type | String | |
vndr_addr_gnrtd_id | kfsVendorAddrId | Vendor Address Id | String | |
vndr_ln1_addr | kfsVendorAddr1 | Vendor Address Line 1 | String | |
vndr_ln2_addr | kfsVendorAddr2 | Vendor Address Line 2 | String | |
vndr_cty_nm | kfsVendorCity | Vendor City | String | |
vndr_st_cd | kfsVendorState | Vendor State | String | |
vndr_zip_cd | kfsVendorZip | Vendor Zip | String | |
vndr_cntry_cd | kfsVendorCountry | Vendor Country | String | |
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:getValidKFSVendorAddresses>
<kfsVendorDetailId>0</kfsVendorDetailId><kfsVendorAddressList>
<kfsVendorHeaderId>1007<<kfsVendorAddrType>PO</kfsVendorHeaderId>kfsVendorAddrType>
<kfsVendorState>CA<<kfsVendorDetailId>0</kfsVendorState>kfsVendorDetailId>
<kfsVendorZip>93483-0446<<kfsVendorHeaderId>1340</kfsVendorZip>kfsVendorHeaderId>
</return>kfsVendorAddressList>
<return><kfsVendorAddressList>
<kfsVendorAddr1>PO BOX 446</kfsVendorAddr1><kfsVendorAddrType>PO</kfsVendorAddrType>
<kfsVendorAddr2><<kfsVendorDetailId>53</kfsVendorAddr2>kfsVendorDetailId>
<kfsVendorAddrId>21634</kfsVendorAddrId>
<kfsVendorHeaderId>2325</kfsVendorHeaderId>
<kfsVendorAddrType>RM</kfsVendorAddrType> </kfsVendorAddressList>
<kfsVendorCity>GROVER BEACH</kfsVendorCity><kfsVendorAddressList>
<kfsVendorCountry>US<<kfsVendorAddrType>XX</kfsVendorCountry>kfsVendorAddrType>
<kfsVendorDetailId>0</kfsVendorDetailId>
<kfsVendorHeaderId>1007<<kfsVendorHeaderId>00000</kfsVendorHeaderId>
</kfsVendorAddressList>
<kfsVendorState>CA</kfsVendorState> </adc:getValidKFSVendorAddresses>
</soapenv:Body>
</soapenv:Envelope> |
Response
Code Block |
---|
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<kfsVendorZip>93483-0446</kfsVendorZip> <soap:Body>
</return><ns2:getValidKFSVendorAddressesResponse xmlns:ns2="http://www.adcom.uci.edu">
<return>
<kfsVendorAddr1>ONE<kfsVendorAddr1>49 ZEISSRAILSIDE DRIVE<ROAD</kfsVendorAddr1>
<kfsVendorAddr2><<kfsVendorAddr2/kfsVendorAddr2>>
<kfsVendorAddrId>21638<<kfsVendorAddrId>4110</kfsVendorAddrId>
<kfsVendorAddrType>PO</kfsVendorAddrType>
<kfsVendorCity>THORNWOOD<<kfsVendorCity>TORONTO</kfsVendorCity>
<kfsVendorCountry>US<<kfsVendorCountry>CA</kfsVendorCountry>
<kfsVendorDetailId>3<<kfsVendorDetailId>0</kfsVendorDetailId>
<kfsVendorHeaderId>13788<<kfsVendorHeaderId>1340</kfsVendorHeaderId>
<kfsVendorState>NY</kfsVendorState>
<kfsVendorZip>10594-1939</kfsVendorZip>
</return>
<return>
<kfsVendorState>ON</kfsVendorState>
<kfsVendorAddr1>PO BOX 5943</kfsVendorAddr1> <kfsVendorZip>M3A -1B3</kfsVendorZip>
<kfsVendorAddr2><</kfsVendorAddr2>return>
<return>
<kfsVendorAddrId>21639</kfsVendorAddrId> <kfsVendorAddr1>757 W. IVY <kfsVendorAddrType>RM<STREET</kfsVendorAddrType>kfsVendorAddr1>
<kfsVendorCity>NEW YORK<<kfsVendorAddr2/kfsVendorCity>>
<kfsVendorCountry>US<<kfsVendorAddrId>4111</kfsVendorCountry>kfsVendorAddrId>
<kfsVendorDetailId>0<<kfsVendorAddrType>PO</kfsVendorDetailId>kfsVendorAddrType>
<kfsVendorCity>SAN <kfsVendorHeaderId>13788<DIEGO</kfsVendorHeaderId>kfsVendorCity>
<kfsVendorState>NY<<kfsVendorCountry>US</kfsVendorState>kfsVendorCountry>
<kfsVendorZip>10087-5943</kfsVendorZip><kfsVendorDetailId>53</kfsVendorDetailId>
<<kfsVendorHeaderId>2325</return>kfsVendorHeaderId>
</ns2:getValidKFSVendorAddressesResponse> <<kfsVendorState>CA</soap:Body>
</soap:Envelope> |
Java Client Example
Code Block |
---|
DWHServerService dss = new DWHServerService();
DWHServer ds = dss.getDWHServerPortCustom();
System.out.println("\nWSClient-getValidKFSVendorAddresses()");
StringArray sa320 = new StringArray();
sa320.getItem().add("1007");
sa320.getItem().add("0");
sa320.getItem().add("PO");
StringArray sa321 = new StringArray();
sa321.getItem().add("1007");
sa321.getItem().add("0");
sa321.getItem().add("RM");
StringArray sa322 = new StringArray();
sa322.getItem().add("13788");
sa322.getItem().add("3");
sa322.getItem().addkfsVendorState>
<kfsVendorZip>92101-1727</kfsVendorZip>
</return>
</ns2:getValidKFSVendorAddressesResponse>
</soap:Body>
</soap:Envelope> |
Java Client Example
Code Block |
---|
DWHServerService dss = new DWHServerService();
DWHServer ds = dss.getDWHServerPortCustom();
ArrayList<VendorParameters> pl34 = new ArrayList<VendorParameters>();
VendorParameters vp340 = new VendorParameters();
vp340.setKfsVendorHeaderId("1340");
vp340.setKfsVendorDetailId("0");
vp340.setKfsVendorAddrType("PO");
StringArrayVendorParameters sa323vp341 = new StringArrayVendorParameters();
sa323vp341.getItemsetKfsVendorHeaderId().add("137882325");
sa323vp341.getItemsetKfsVendorDetailId().add("053");
sa323vp341.getItemsetKfsVendorAddrType().add("RMPO");
StringArrayVendorParameters sa324vp342 = new StringArrayVendorParameters();
sa324vp342.getItemsetKfsVendorHeaderId("00000");
vp342.addsetKfsVendorDetailId("000000");
sa324vp342.getItemsetKfsVendorAddrType("XX");
pl34.add("0"vp340);
sa324pl34.getItemadd(vp341);
pl34.add("XX"vp342);
List<VendorAddressDetails> resultList32resultList34 = ds.getValidKFSVendorAddresses(Arrays.asList(sa320, sa321, sa322, sa323, sa324)pl34);
if (resultList32resultList34 != null) {
for (Iterator i = resultList32resultList34.iterator(); i.hasNext();) {
VendorAddressDetails element = (VendorAddressDetails) i.next();
System.out.println("\t" + element.getKfsVendorHeaderId() + "/" + element.getKfsVendorDetailId() + "/" + element.getKfsVendorAddrType() + " : " + element.getKfsVendorAddrId() + "/" + element.getKfsVendorAddrId());
}
} else {
System.out.println("something bad happened...please check your query");
} |
...