developer:soap:methods:gettransactionreport

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
developer:soap:methods:gettransactionreport [2009/08/10 15:08]
tem
developer:soap:methods:gettransactionreport [2009/09/09 13:12] (current)
charlie
Line 94: Line 94:
  
 ?>  ?> 
 +</​code>​
 +
 +
 +==== Java ====
 +
 +This example uses the [[developer/​javalibrary|USAePay Java library]]. ​ For directions on how to install the library and create the token/​client objects, go to either the [[..:​howto:​javajaxrpc|Java JAX-RPC Howto]] or the [[..:​howto:​javajaxws|Java JAX-WS Howto]].
 +
 +<code java>
 +try {
 +  String StartDate = "​2009/​01/​01";​
 +  String EndDate = "​2009/​09/​09";​
 +  String Format = "​html";​
 +  String Report = "​CreditCard:​Errors By Date";
 +
 +  String response = client.getTransactionReport(token,​ StartDate, EndDate, Report, Format);
 + 
 +  BASE64Decoder decoder = new BASE64Decoder();​
 +  byte[] decodedBytes = decoder.decodeBuffer(response);​
 +
 +  String report = new String(decodedBytes);​
 +  System.out.println(report); ​
 +} catch (Exception e) {
 +    System.out.println("​Soap Exception: " + e.getMessage());​
 +}
 </​code>​ </​code>​
  
developer/soap/methods/gettransactionreport.txt ยท Last modified: 2009/09/09 13:12 by charlie

Page Tools