developer:soap:methods:closebatch

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:closebatch [2009/07/27 11:13]
tem
developer:soap:methods:closebatch [2009/09/08 09:55] (current)
charlie
Line 110: Line 110:
 </​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 {
 +
 +//Creating Close Batch Request object
 +CloseBatchRequest Request = new CloseBatchRequest();​
 +
 +Request.setToken(token);​
 +
 +//Setting batchRefNum to 0 for current batch, for a different batch set to the Batch Ref Num
 +Request.setBatchRefNum(BigInteger.ZERO);​
 +
 +CloseBatchResponse Result = client.closeBatch(Request);​
 +
 +} catch (Exception e) {
 + System.out.println("​Soap Exception: " + e.getMessage());​
 +}
 +</​code>​
  
 ===== Change History ===== ===== Change History =====
developer/soap/methods/closebatch.txt ยท Last modified: 2009/09/08 09:55 by charlie

Page Tools