This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
developer:soap:methods:gettransaction [2009/07/02 12:41] epouchak |
developer:soap:methods:gettransaction [2009/09/09 11:47] charlie |
||
---|---|---|---|
Line 56: | Line 56: | ||
</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 RefNum to the Reference Number of transaction you | ||
+ | //want to retrieve. | ||
+ | BigInteger RefNum = new BigInteger(); | ||
+ | |||
+ | TransactionObject Tran = new TransactionObject(); | ||
+ | |||
+ | Tran = client.getTransaction(token, refnum); | ||
+ | |||
+ | System.out.println(Tran.getResponse); | ||
+ | } catch (Exception e) { | ||
+ | System.out.println("Soap Exception: " + e.getMessage()); | ||
+ | } | ||
+ | </code> | ||
==== XML ==== | ==== XML ==== |