Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

IndexParameterDescriptionRequired?Data Type (max length)Example
0kfsVendorHeaderIdVendor Header Generated IDYString (10)11261058
1kfsVendorDetailIdVendor Detail Assigned IDYString (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 ParameterJava ParameterDescriptionData TypeExample
vndr_hdr_gnrtd_id
kfsVendorHeaderIdVendor Header Generated IDString11261058
vndr_dtl_asnd_id
kfsVendorDetailIdVendor Detail Assigned IDString10
VALIDisValidis Vendor validbooleantrue

...

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.getDWHServerPortCustomgetDWHServerPort();

ArrayList<VendorParameters> pl30 = 
System.out.println("\nWSClient-isValidKFSVendors()"new ArrayList<VendorParameters>();
StringArrayVendorParameters sa280vp300 = new StringArrayVendorParameters();
sa280.getItem().addvp300.setKfsVendorHeaderId("11261058");
sa280.getItem().addvp300.setKfsVendorDetailId("10");
StringArrayVendorParameters sa281vp301 = new StringArrayVendorParameters();
sa281vp301.getItemsetKfsVendorHeaderId().add("11271059");
sa281vp301.getItemsetKfsVendorDetailId().add("10");
StringArrayVendorParameters sa282vp302 = new StringArrayVendorParameters();
sa282vp302.getItemsetKfsVendorHeaderId("0000");
vp302.addsetKfsVendorDetailId("00001");
sa282pl30.getItemadd(vp300);
pl30.add("0"vp301);
List<VendorValidation> resultList28 pl30.add(vp302);
List<VendorValidation> resultList30 = 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");
}

...

IndexParameterDescriptionRequired?Data Type (max length)Example
0kfsVendorHeaderIdVendor Header Generated IDYString(10)11261058
1kfsVendorDetailIdVendor Detail Assigned IDYString(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 &amp;          <kfsVendorName>CORNELL UNIVERSITY-ILR<ASSOCIATES, INC</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.getDWHServerPortCustomgetDWHServerPort();

System.out.println("\nWSClient-getValidKFSVendors()"ArrayList<VendorParameters> pl30 = new ArrayList<VendorParameters>();
StringArrayVendorParameters sa290vp300 = new StringArrayVendorParameters();
sa290vp300.getItemsetKfsVendorHeaderId().add("1126")"1058");
sa290vp300.getItemsetKfsVendorDetailId().add("10");
StringArrayVendorParameters sa291vp301 = new StringArrayVendorParameters();
sa291vp301.getItemsetKfsVendorHeaderId().add("11271059");
sa291.getItem().addvp301.setKfsVendorDetailId("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");
}

...

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


System.out.println("\nWSClient--getAllKFSVendors()================================");
List<VendorDetails> resultList30 = ds.getAllKFSVendors();
if (resultList30 != null) {
	System.out.println("getAllVendor-total size: " + resultList30.size());
	System.out.println("getAllVendor-1st item HeaderId / DetailId : VendorName / DUNSNumber" + ((VendorDetails)resultList30.get(0)).getKfsVendorHeaderId() + "/" + ((VendorDetails)resultList30.get(0)).getKfsVendorDetailId() + " : " + ((VendorDetails)resultList30.get(0)).getKfsVendorName() + "/" + ((VendorDetails)resultList30.get(0)).getKfsVendorDUNSNumber());
} else {
	System.out.println("something bad happened...please check your query");
}

...

IndexParameterDescriptionRequired?Data Type (max length)Example
0kfsVendorAddrIdVendor Address Generated IDYString(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 ParameterJava ParameterDescriptionData TypeExample
vndr_addr_gnrtd_id
kfsVendorAddrIdVendor Address Generated IDString216264100
VALIDisValidis Vendor Address ID validbooleantrue

...

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>
            <kfsVendorAddressId>4110</kfsVendorAddressId>
         <kfsVendorAddressList>21627<</kfsVendorAddressList>
         <kfsVendorAddressList>0000</kfsVendorAddressList><kfsVendorAddressList>
            </adc:isValidKFSVendorAddresses><kfsVendorAddressId>4111</kfsVendorAddressId>
         </soapenv:Body>
</soapenv:Envelope>kfsVendorAddressList>
         <kfsVendorAddressList>
            <kfsVendorAddressId>0000</kfsVendorAddressId>
         </kfsVendorAddressList>
      </adc:isValidKFSVendorAddresses>
   </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">
         <return>
            <kfsVendorAddrId>0000</kfsVendorAddrId>
            <valid>false</valid>
         </return>
         <return>
            <kfsVendorAddrId>21626<<kfsVendorAddrId>4111</kfsVendorAddrId>
            <valid>true</valid>
         </return>
         <return>
            <kfsVendorAddrId>21627<<kfsVendorAddrId>4110</kfsVendorAddrId>
            <valid>true</valid>
         </return>
      </ns2:isValidKFSVendorAddressesResponse>
   </soap:Body>
</soap:Envelope>

...

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

ArrayList<VendorParameters> pl33 = new 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");
}

 

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

...

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

 

...

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

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

...

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

...

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 = '10071340' AND VNDR_DTL_ASND_ID = '0' AND VNDR_ADDR_TYP_CD='PO') OR 
(VNDR_HDR_GNRTD_ID = '10072325' AND VNDR_DTL_ASND_ID = '053' AND VNDR_ADDR_TYP_CD='RMPO') OR 
(VNDR_HDR_GNRTD_ID = '1378800000' AND VNDR_DTL_ASND_ID = '30' AND VNDR_ADDR_TYP_CD='POXX')
OR 
();

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

...

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 Type
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_addr_gnrtd_id 
kfsVendorAddrIdVendor Address Id
cntry_cd
kfsVendorCountryVendor CountryString 
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
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

...

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.getDWHServerPort();

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

...