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
Next revision
Previous revision
developer:soap:methods:closebatch [2009/07/26 13:47]
tem
developer:soap:methods:closebatch [2009/09/08 09:55]
charlie
Line 62: Line 62:
 </​code>​ </​code>​
  
 +
 +==== C Sharp (.Net) ====
 +
 +For directions on how to set up the WSDL link, create "​token"​ and "​client",​ go to [[..:​howto:​csharp|C Sharp Soap How-to]].
 +
 +<code c>
 +Boolean result;
 +
 +// close current batch
 +try
 +{
 +    result = client.closeBatch(token,​ "​0"​);​
 +
 +    if (result) MessageBox.Show("​Batch closed successfully"​);​
 +    else MessageBox.Show("​Batch failed to close"​);​
 +}
 +catch (Exception err)
 +{
 +    MessageBox.Show(err.Message);​
 +}
 +</​code>​
  
 ==== XML ==== ==== XML ====
Line 89: 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