developer:soap:methods:getbatchstatus

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:getbatchstatus [2009/07/24 16:42]
tem
developer:soap:methods:getbatchstatus [2009/09/08 12:38] (current)
charlie
Line 39: Line 39:
 <?​php ​ <?​php ​
  
-try {  +try {
- +
-  $refnum=$this->​runQuickSale(); ​+
   $BatchRefNum=0; ​   $BatchRefNum=0; ​
  
-  $res=$client->​getBatchStatus($token,​ $BatchRefNum);  ​ +  $Result=$client->​getBatchStatus($token,​ $BatchRefNum);  ​
-  print_r($res);​  +
- +
-  $this->​assertTrue($res->​Status=='​Paused'​);​  +
-             +
  
  
 catch (SoapFault $e) {  catch (SoapFault $e) { 
  
-  ​die("get Batch Upload status failed :" .$e->​getMessage()); +  ​echo "get Batch Upload status failed :" .$e->​getMessage(); ​
  
  
  
 ?>  ?> 
 +</​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. ​ 0 is always the current batch
 +  BigInteger BatchNum = new BigInteger("​0"​);​
 +  ​
 +  BatchStatus batchstat = new BatchStatus();​
 +  batchstat = client.getBatchStatus(token,​ BigInteger.ZERO);​
 +} catch (Exception e) {
 +    System.out.println("​Soap Exception: " + e.getMessage());​
 +}
 </​code>​ </​code>​
  
developer/soap/methods/getbatchstatus.txt · Last modified: 2009/09/08 12:38 by charlie

Page Tools