...
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:isValidKFSSubObjects>
<kfsSubObjectList>
<item>2012</item>
<item>IR</item>
<item>1000211</item>
<item>4400</item>
<item>BRM1</item>
</kfsSubObjectList>
<kfsSubObjectList>
<item>2012</item>
<item>IR</item>
<item>1000211</item>
<item>4400</item>
<item>ITM1</item>
</kfsSubObjectList>
<kfsSubObjectList>
<item>2012</item>
<item>IR</item>
<item>1000211</item>
<item>0000</item>
<item>XXXX</item>
</kfsSubObjectList>
</adc:isValidKFSSubObjects>
</soapenv:Body>
</soapenv:Envelope> |
Response
Code Block |
---|
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns2:isValidKFSSubObjectsResponse xmlns:ns2="http://www.adcom.uci.edu"> <return> <kfsAcctNumber>1000211</kfsAcctNumber> <kfsChartCode>IR</kfsChartCode> <kfsFiscalYear>2012</kfsFiscalYear> <kfsObjCode>4400</kfsObjCode> <kfsSubObjCode>BRM1</kfsSubObjCode> <valid>true</valid> </return> <return> <kfsAcctNumber>1000211</kfsAcctNumber> <kfsChartCode>IR</kfsChartCode> <kfsFiscalYear>2012</kfsFiscalYear> <kfsObjCode>4400</kfsObjCode> <kfsSubObjCode>ITM1</kfsSubObjCode> <valid>true</valid> </return> <return> <kfsAcctNumber>1000211</kfsAcctNumber> <kfsChartCode>IR</kfsChartCode> <kfsFiscalYear>2012</kfsFiscalYear> <kfsObjCode>0000</kfsObjCode> <kfsSubObjCode>XXXX</kfsSubObjCode> <valid>false</valid> </return> </ns2:isValidKFSSubObjectsResponse> </soap:Body> </soap:Envelope> |
Response
Code Block |
---|
|
Java Client Example
Code Block |
---|
DWHServerService dss = new DWHServerService(); DWHServer ds = dss.getDWHServerPortCustom(); System.out.println("\nWSClient-isValidKFSSubObjects()"); StringArray sa220 = new StringArray(); sa220.getItem().add("2012"); sa220.getItem().add("IR"); sa220.getItem().add("1000211"); sa220.getItem().add("4400"); sa220.getItem().add("BRM1"); StringArray sa221 = new StringArray(); sa221.getItem().add("2012"); sa221.getItem().add("IR"); sa221.getItem().add("1000211"); sa221.getItem().add("4400"); sa221.getItem().add("ITM1"); StringArray sa222 = new StringArray(); sa221.getItem().add("2012"); sa221.getItem().add("IR"); sa221.getItem().add("1000211"); sa221.getItem().add("0000"); sa221.getItem().add("XXXX"); List<SubObjectValidation> resultList22 = ds.isValidKFSSubObjects(Arrays.asList(sa220, sa221, sa222)); if (resultList22 != null) { for (Iterator i = resultList22.iterator(); i.hasNext();) { SubObjectValidation element = (SubObjectValidation)i.next(); System.out.println("\t" + element.getKfsFiscalYear() + "/" + element.getKfsChartCode() + "/" + element.getKfsAcctNumber() + "/" + element.getKfsObjCode() + "/" + element.getKfsSubObjCode() + " : " + element.isValid()); } } else { System.out.println("something bad happened...please check your query"); } |
...
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:getValidKFSSubObjects>
<kfsSubObjectList>
<item>2012</item>
<item>IR</item>
<item>1000211</item>
<item>4400</item>
<item>BRM1</item>
</kfsSubObjectList>
<kfsSubObjectList>
<item>2012</item>
<item>IR</item>
<item>1000211</item>
<item>4400</item>
<item>ITM1</item>
</kfsSubObjectList>
<kfsSubObjectList>
<item>2012</item>
<item>IR</item>
<item>1000211</item>
<item>0000</item>
<item>XXXX</item>
</kfsSubObjectList>
</adc:getValidKFSSubObjects>
</soapenv:Body>
</soapenv:Envelope> |
Response
Code Block |
---|
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns2:getValidKFSSubObjectsResponse xmlns:ns2="http://www.adcom.uci.edu"> <return> <kfsAcctNumber>1000211</kfsAcctNumber> <kfsChartCode>IR</kfsChartCode> <kfsFiscalYear>2012</kfsFiscalYear> <kfsObjCode>4400</kfsObjCode> <kfsObjCodeName>METERED MAIL</kfsObjCodeName> <kfsSubObjCode>BRM1</kfsSubObjCode> <kfsSubObjCodeName>BUSINESS REPLY MAIL</kfsSubObjCodeName> </return> <return> <kfsAcctNumber>1000211</kfsAcctNumber> <kfsChartCode>IR</kfsChartCode> <kfsFiscalYear>2012</kfsFiscalYear> <kfsObjCode>4400</kfsObjCode> <kfsObjCodeName>METERED MAIL</kfsObjCodeName> <kfsSubObjCode>ITM1</kfsSubObjCode> <kfsSubObjCodeName>INTERNATIONAL MAIL</kfsSubObjCodeName> </return> </ns2:getValidKFSSubObjectsResponse> </soap:Body> </soap:Envelope> |
Response
Code Block |
---|
|
Java Client Example
Code Block |
---|
DWHServerService dss = new DWHServerService(); DWHServer ds = dss.getDWHServerPortCustom(); System.out.println("\nWSClient-getValidKFSSubObjects()"); StringArray sa230 = new StringArray(); sa230.getItem().add("2012"); sa230.getItem().add("IR"); sa230.getItem().add("1000211"); sa230.getItem().add("4400"); sa230.getItem().add("BRM1"); StringArray sa231 = new StringArray(); sa231.getItem().add("2012"); sa231.getItem().add("IR"); sa231.getItem().add("1000211"); sa231.getItem().add("4400"); sa231.getItem().add("ITM1"); StringArray sa232 = new StringArray(); sa232.getItem().add("2012"); sa232.getItem().add("IR"); sa232.getItem().add("1000211"); sa232.getItem().add("0000"); sa232.getItem().add("XXXX"); List<SubObjectDetails> resultList23 = ds.getValidKFSSubObjects(Arrays.asList(sa230, sa231, sa232)); if (resultList23 != null) { for (Iterator i = resultList23.iterator(); i.hasNext();) { SubObjectDetails element = (SubObjectDetails)i.next(); System.out.println("\t" + element.getKfsFiscalYear() + "/" + element.getKfsChartCode() + "/" + element.getKfsAcctNumber() + "/" + element.getKfsObjCode() + "/" + element.getKfsSubObjCode() + " : " + element.getKfsSubObjCodeName()); } } else { System.out.println("something bad happened...please check your query"); } |
...