developer:soap:methods:getbatchtransactions

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:getbatchtransactions [2009/07/24 16:48]
tem Renamed BatchNum Parameter to BatchRefNum
developer:soap:methods:getbatchtransactions [2009/09/08 12:43] (current)
charlie
Line 39: Line 39:
  
 try {  try { 
 +  //Set BatchRefNum to the Batch Reference Number of the batch you want  
 +  //to retrieve transactions from.  0 is always the current batch
   $BatchRefNum=0; ​   $BatchRefNum=0; ​
  
-  $res=$client->​getBatchTransactions($token,​ $BatchRefNum);  ​ +  $Result=$client->​getBatchTransactions($token,​ $BatchRefNum);  ​
-  print_r($res);​  +
-             +
  
  
Line 56: Line 55:
 </​code>​ </​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 {
 +  //Set BatchNum to the Batch Reference Number of the batch you want
 +  //to retrieve transactions from.  0 is always the current batch
 +  BigInteger BatchNum = new BigInteger("​0"​);​
 +  ​
 +  TransactionObjectArray ResultSet = new TransactionObjectArray();​
 +  ResultSet = client.getBatchTransactions(token,​ BatchNum);
 +} catch (Exception e) {
 +    System.out.println("​Soap Exception: " + e.getMessage());​
 +}
 +</​code>​
  
 ==== Visual Basic (.Net) ==== ==== Visual Basic (.Net) ====
developer/soap/methods/getbatchtransactions.txt · Last modified: 2009/09/08 12:43 by charlie

Page Tools